Original Post
Here is the code i am trying to run. This only includes initializing directx and setting the cooperative level. HRESULT WINAPI DirectSoundCreate8( LPCGUID lpcGuidDevice, LPDIRECTSOUND8 *ppDS8, LPUNKNOWN pUnkOuter; IdirectSound8 *g_pDS; //global IdirectSound8 object If(FAILED(DirectSoundCreate8(NULL, &g_pDS, NULL))) { //Error occurred } //SETTING THE COOPERATIVE LEVEL IdirectSound8::SetCooperativeLevel( HWND hwnd; //handle to parent window DWORD dwlevel); //cooperative level from Table 8.2 when I run the code it says that it has a missing header. I am studying directx and I am planning to study it by part but I am stuck with this error. hope anyone can help me. thanks!