Original Post
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); }