In my static library, I'm trying to use the IKsPropertySet interface
to retrieve the waveDeviceId from DirectSound device GUID.
But when I compile the test program that use my lib I get:
AudioLib4d.lib(RtAudio.obj) : error LNK2001: unresolved external
symbol _DSPROPSETID_DirectSoundDevice
AudioLib4d.lib(RtAudio.obj) : error LNK2001: unresolved external
symbol _IID_IKsPropertySet
AudioLib4d.lib(RtAudio.obj) : error LNK2001: unresolved external
symbol _CLSID_DirectSoundPrivate
I've added the dsound.lib to my linker paths and also, before
inserting the new function that use IKsPropertySet, the project worked
well!
Where could be the problem?
Thanks
Daniele.
If you are using the DXSDK, you can link in dxguid.lib.
If you are using the Windows SDK or the DXSDK, you can #define INITGUID
before including dsound.h in ONE of your compliation modules and it will be
defined in the data segment by the header.
--
--
-Chuck Walbourn
SDE, XNA Developer Connection
This posting is provided "AS IS" with no warranties, and confers no rights.