Skip to main content
gamedev.net
🔒 Locked

MISSING SYNTAX

Started by spri2 Oct 12, 2006 at 3:16 AM 2 replies 650+ views
Original Post
spri2
spri2
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!
Evil Steve
Evil Steve
What header is missing? Have you installed the DirectX SDK? Have you set up your paths in the IDE to point to the DirectX SDK? What IDE are you using?
spri2
spri2
I have set -up all the links to directx directsound. But the error does not indicate the type of header. I tried to put "main()" but I expected an error. Rather, Is there something wrong in the code?

Topic Locked

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

Sign in to reply to this topic.