Hi! I'm using Visual C++ 2005 Express Edition and I am trying to create an application that uses DirectSound. I found on DirectSound Documentation how to initiate it, but I still have some problems.
When I initiate last member of DSBUFFERDESC (the struct that describes the characteristics of a new buffer), i get this error:
1>main.obj : error LNK2019: unresolved external symbol _GUID_NULL referenced in function "void __cdecl InitDirectSound(struct HWND__ *)" (?InitDirectSound@@YAXPAUHWND__@@@Z)
Here is the code, where "GUID_NULL" (which is defined in dsound.h) appears:
DSBUFFERDESC pcDSPrimaryBufferDesc;
pcDSPrimaryBufferDesc.guid3DAlgorithm=GUID_NULL;
On my project Propetries>>Configuration Propetries>>Linker>>Input>>ADDITIONAL DEPENDENCIES I added dsound.lib (and also dxguid.lib), but on DirectX Documentation it says that some DirectSound functions use Dsound3d.dll as import library.
Where should I add it? what did I missed? Thank you in advance!