Skip to main content
GameDev.net gamedev.net
🔒 Locked

DirectX Error Initializing

Started by spirit0306 Jan 14, 2007 at 7:49 AM 0 replies 350+ views
Original Post
spirit0306
spirit0306
I am compiling this code but i am getting an error that says "error C2664: 'DirectSoundCaptureCreate' : cannot convert parameter 2 from 'struct IDirectSoundCaptureBuffer ** ' to 'struct IDirectSoundCapture ** '" Please help... Here is my code... #include #include "resource.h" #include "DSUtil.h" #include "DXUtil.h" HRESULT INITDIRECTSOUND( HWND hDlg, GUID* pDeviceGuid ); LPDIRECTSOUNDCAPTUREBUFFER dsCapture = NULL; HRESULT INITDIRECTSOUND( HWND hDlg, GUID* pDeviceGuid ) { HRESULT hr; dsCapture=NULL; hr = DirectSoundCaptureCreate(NULL,&dsCapture,NULL); }
Drazgal
Drazgal
Use LPDIRECTSOUNDCAPTURE not
LPDIRECTSOUNDCAPTUREBUFFER.

Also since theres a DirectX forum and your question is entirely on DirectX..... :D (only mentioning this since your question almost dropped off the first page when I answered, usually once they drop off they don't get answered).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.