Discussion:
VS2008 Managed C++ and DirectX March 2009 SDK build problems
(too old to reply)
Another Philip Taylor
2009-03-26 18:21:01 UTC
Permalink
Its driving me nuts - I have an updated C++ application that has a
DirectSound interface. The code has been converted to use managed C++ and now
compiles OK but fails to link - a typical error being

error LNK2020: unresolved token (0A00000D) IID_IDirectSound3DListener
followed by
error LNK2001: unresolved external symbol IID_IDirectSound3DListener

I can't find any documentation that relates to VS2008 managed C++ using
DirectX (including sample programs) so would someone put me out of my misery
and let me know whether this combination is possible and if so how.

As per the latest SDK, which still refers to VS2003, I have now defined
INITGUID and included dxguid.lib, but it still fails to link. I think the
answer is related to where these GUIDs actually live - within my app or
within a lib/dll.

Thanks
Armin Zingler
2009-03-27 17:42:45 UTC
Permalink
"Another Philip Taylor" <***@discussions.microsoft.com>
schrieb
Post by Another Philip Taylor
Its driving me nuts - I have an updated C++ application that has a
DirectSound interface. The code has been converted to use managed C++ and now
compiles OK but fails to link - a typical error being
error LNK2020: unresolved token (0A00000D) IID_IDirectSound3DListener
followed by
error LNK2001: unresolved external symbol IID_IDirectSound3DListener
I can't find any documentation that relates to VS2008 managed C++ using
DirectX (including sample programs) so would someone put me out of my misery
and let me know whether this combination is possible and if so how.
As per the latest SDK, which still refers to VS2003, I have now defined
INITGUID and included dxguid.lib, but it still fails to link. I think the
answer is related to where these GUIDs actually live - within my app or
within a lib/dll.
Thanks
dsound.lib?


Armin
legalize+ (Richard [Microsoft Direct3D MVP])
2009-03-27 23:20:51 UTC
Permalink
[Please do not mail me a copy of your followup]
Post by Another Philip Taylor
error LNK2020: unresolved token (0A00000D) IID_IDirectSound3DListener
followed by
error LNK2001: unresolved external symbol IID_IDirectSound3DListener
Are you linking against dxguid.lib?
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Another Philip Taylor
2009-03-28 11:11:01 UTC
Permalink
I prempted your dxguid.lib suggestion in my original question - the answer
is yes, I do link against dxguid.lib.

I have also performed a rebuild of the project with and without the INITGUID
definition. With INITGUID defined, the linker only seems to report missing
GUID_NULL.

Can I assume that the combination of managed VS2008 C++ and DirectX (March
2009) is valid and supported?
Post by legalize+ (Richard [Microsoft Direct3D MVP])
Post by Another Philip Taylor
error LNK2020: unresolved token (0A00000D) IID_IDirectSound3DListener
followed by
error LNK2001: unresolved external symbol IID_IDirectSound3DListener
Are you linking against dxguid.lib?
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>
legalize+ (Richard [Microsoft Direct3D MVP])
2009-03-28 22:58:04 UTC
Permalink
[Please do not mail me a copy of your followup]

Sorry, I missed that in the original post. Sometimes they get
over-eager to remove items related to deprecated components. (I have
never used DSound, so I don't pay attention to it.) You could try the
dxguid.lib from an older SDK.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
<http://www.xmission.com/~legalize/book/download/index.html>

Legalize Adulthood! <http://blogs.xmission.com/legalize/>
Loading...