DirectSound header issues

This is a discussion on DirectSound header issues within the C++ Programming forums, part of the General Programming Boards category; I added the DirectSound header to my C++ application. I compile and I get about 57+ errors. If I remove ...

  1. #1
    Software engineer
    Join Date
    Aug 2005
    Location
    Oregon
    Posts
    283

    DirectSound header issues

    I added the DirectSound header to my C++ application. I compile and I get about 57+ errors. If I remove the header, the errors are gone. Everything looks natural... I included the dsound.lib file as normal. Here's my code...

    #define WIN32_LEAN_AND_MEAN

    #include <windows.h>
    #include <windowsx.h>
    #include "winmain.h"
    #include <d3d9.h>
    #include <dsound.h>
    #include <dinput.h>
    #include "Common.h"

    Errors:
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(230) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(230) : error C2143: syntax error : missing ';' before '*'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(230) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(349) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(349) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(349) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(365) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(365) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(365) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(416) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(416) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(416) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(425) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(425) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(425) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(686) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(696) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(770) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(780) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(1041) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
    c:\program files\microsoft directx sdk (february 2006)\include\dsound.h(1099) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'




    Why would this happen?
    Last edited by dxfoo; 03-19-2006 at 07:32 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 04:25 PM
  2. Obtaining source & destination IP,details of ICMP Header & each of field of it ???
    By cromologic in forum Networking/Device Communication
    Replies: 1
    Last Post: 04-29-2006, 03:49 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21