#1
  1. No Profile Picture
    :p
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Israel
    Posts
    18
    Rep Power
    0

    Exclamation dsound.h - 6 errors


    hi, im creating directplay voice shortcut functions and i got 6 directsound's errors.
    so i included dsound.h in a blank cpp and i got these errors:
    Code:
    --------------------Configuration: Sky - Win32 Debug--------------------
    Compiling...
    sky.cpp
    c:\program files\microsoft visual studio\vc98\include\dsound.h(101) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
    c:\program files\microsoft visual studio\vc98\include\dsound.h(101) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\dsound.h(101) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\dsound.h(152) : error C2146: syntax error : missing ';' before identifier 'lpwfxFormat'
    c:\program files\microsoft visual studio\vc98\include\dsound.h(152) : error C2501: 'LPWAVEFORMATEX' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\dsound.h(152) : error C2501: 'lpwfxFormat' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\dsound.h(187) : error C2143: syntax error : missing ';' before '*'
    c:\program files\microsoft visual studio\vc98\include\dsound.h(187) : error C2501: 'LPCWAVEFORMATEX' : missing storage-class or type specifiers
    c:\program files\microsoft visual studio\vc98\include\dsound.h(286) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
    c:\program files\microsoft visual studio\vc98\include\dsound.h(295) : error C2061: syntax error : identifier 'LPCWAVEFORMATEX'
    c:\program files\microsoft visual studio\vc98\include\dsound.h(564) : error C2061: syntax error : identifier 'LPWAVEFORMATEX'
    Error executing cl.exe.
    
    sky.obj - 11 error(s), 0 warning(s)
    and when i include only dvoice.h, i get:
    Code:
    --------------------Configuration: Sky - Win32 Debug--------------------
    Compiling...
    sky.cpp
    c:\dx90sdk\include\dsound.h(305) : error C2146: syntax error : missing ';' before identifier 'dwReserved1'
    c:\dx90sdk\include\dsound.h(305) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
    c:\dx90sdk\include\dsound.h(305) : error C2501: 'dwReserved1' : missing storage-class or type specifiers
    c:\dx90sdk\include\dsound.h(306) : error C2146: syntax error : missing ';' before identifier 'dwReserved2'
    c:\dx90sdk\include\dsound.h(306) : error C2501: 'DWORD_PTR' : missing storage-class or type specifiers
    c:\dx90sdk\include\dsound.h(306) : error C2501: 'dwReserved2' : missing storage-class or type specifiers
    Error executing cl.exe.
    
    sky.obj - 6 error(s), 0 warning(s)
    am i including a wrong header, or its the dsound.h?
    my dsound.h of dx90sdk\ dir is 109kb (110,107 bytes)
  2. #2
  3. No Profile Picture
    :p
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    Israel
    Posts
    18
    Rep Power
    0
    problem solved, the program (dsound.h) just didn't knew what is DWORD_PTR
    admins, you can remove this topic

IMN logo majestic logo threadwatch logo seochat tools logo