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

DirectX initialization problem

Started by spirit0306 Jan 14, 2007 at 3:43 AM 0 replies 350+ views
Original Post
spirit0306
spirit0306
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 }
Endurion
Endurion
There's supposed to be a variable getting the result:

HRESULT hRes = DirectSoundCaptureCreate8(NULL,&dsCapture,NULL);
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>

Topic Locked

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

Sign in to reply to this topic.