Original Post
I am initializing directsoundcapturecreate but i am having an error on line 10 which says "error C2078: too many initializers".Can someone help me with my problem... 1 #include 2 #include "resource.h" 3 #include "DSUtil.h" 4 #include "DXUtil.h" 5 HRESULT INITDIRECTSOUND( HWND hDlg, GUID* pDeviceGuid ); 6 LPDIRECTSOUNDCAPTUREBUFFER dsCapture = NULL; 7 HRESULT INITDIRECTSOUND( HWND hDlg, GUID* pDeviceGuid ) 8 { 9 dsCapture=NULL; 10 HRESULT DirectSoundCaptureCreate8(NULL,&dsCapture,NULL); 11 }