C++/VB - unresolved external symbol _IID_IKsPropertySet

Asked By Barzo
26-Oct-09 08:51 PM
Hi,

In my static library, I am 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 have 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.
IKsPropertySet
(1)
DirectSoundPrivate
(1)
DirectSoundDevice
(1)
WaveDeviceId
(1)
DirectSound
(1)
Windows
(1)
DSPROPSETID
(1)
INITGUID
(1)
  Chuck Walbourn [MSFT] replied to Barzo
28-Oct-09 04:34 PM
You need the guids for those objects to be defined in your project.

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.
help
is there the way to change it programmatically (lowering or incrementing) Regards, Win32 UI Discussions IKsPropertySet (1) DirectSoundPrivate (1) DSound (1) Registry (1) Slider (1) CLSID (1) Audio (1) Ini (1) DSound & IKsPropertySet-> Get() but it is complicated. . . (CLSID_DirectSoundPrivate and so on) keywords: sound, card, settings description: Hi
Question on IKSPropertySet Interface parameters C++ / VB Hi, I'm a beginner to DirectShow and have some understanding problems with the IKsPropertySet. Can someone explain me the difference of the pInstanceData and pPropData in the IKsPropertySet::Set and IKsPropertySet::Get methodes? The SDK is 'from a beginners point of view' not very easy to code examples that can clearify this. Thanks for any help Christian Win32 DirectX Video Discussions IKSPropertySet (1) IKsControl (1) AVStream (1) DwPropID (1) CbInstanceData (1) PInstanceData (1) GuidPropSet (1) CbPropData (1 specific property <name> , the is empty {NULL, 0}, as shown in the sample code for IKsPropertySet::Get(). - - / / Alessandro Angeli / / MVP :: DirectShow / MediaFoundation / / mvpnews at riseoftheants dot com / / http: / / www.riseoftheants.com you Allesandro and Tim, to bring some light into the dark ;) Christian keywords: Question, on, IKSPropertySet, Interface, parameters description: Hi, I'm a beginner to DirectShow and have some understanding problems with the IKsPropertySet. Can someone explain me the difference of the pInstanceDat
ppv) { / / Standard OLE stuff if(riid = = _uuidof(IAMStreamConfig)) *ppv = (IAMStreamConfig*)this; else if(riid = = _uuidof(IKsPropertySet)) *ppv = (IKsPropertySet*)this; else return CSourceStream::QueryInterface(riid, ppv); AddRef(); return S_OK; } After a lot of trace get exception and entire Skype.exe crashes. . . Any ideas? Win32 DirectX Video Discussions IAMStreamConfig (1) IKsPropertySet (1) CVCamStream (1) CvCreateCameraCapture (1) CSourceStream (1) CvReleaseCapture (1) QueryInterface (1) AddRef (1) Hi to