www.digitalmars.com         C & C++   DMDScript  

c++ - prsht.h errors

reply "Gary" <gedumer bcpl.net> writes:
I'm trying to compile an ANSI C windows program with dm and get the
following errors:

typedef struct _PSP FAR* HPROPSHEETPAGE;
                       ^
D:\DM\BIN\..\include\win32\PRSHT.H(56) : Error: '=', ';' or ',' expected
typedef UINT (CALLBACK FAR * LPFNPSPCALLBACKA)(HWND hwnd, UINT uMsg, struct
_PROPSHEETPAGEA FAR *ppsp);
                         ^
D:\DM\BIN\..\include\win32\PRSHT.H(63) : Error: ')' expected to close
function parameter list with
typedef UINT (CALLBACK FAR * LPFNPSPCALLBACKW)(HWND hwnd, UINT uMsg, struct
_PROPSHEETPAGEW FAR *ppsp);
                         ^
D:\DM\BIN\..\include\win32\PRSHT.H(64) : Error: ')' expected
        DWORD           dwSize;
                             ^
D:\DM\BIN\..\include\win32\PRSHT.H(89) : Error: ';' expected following
declaration of struct member
        DWORD           dwFlags;
                              ^
D:\DM\BIN\..\include\win32\PRSHT.H(90) : Error: 'DWORD' is already defined
Fatal error: too many errors
--- errorlevel 1

I believe richedit.h includes the prsht.h file. I'm not trying to create a
property sheet control. I am using richedit though.

Any thoughts?

Thanks... Gary.
Mar 03 2003
parent "Walter" <walter digitalmars.com> writes:
Could be a macro going awry. Try compiling with -e and check the error
message.

"Gary" <gedumer bcpl.net> wrote in message
news:b40ab9$219f$1 digitaldaemon.com...
 I'm trying to compile an ANSI C windows program with dm and get the
 following errors:

 typedef struct _PSP FAR* HPROPSHEETPAGE;
                        ^
 D:\DM\BIN\..\include\win32\PRSHT.H(56) : Error: '=', ';' or ',' expected
 typedef UINT (CALLBACK FAR * LPFNPSPCALLBACKA)(HWND hwnd, UINT uMsg,
struct
 _PROPSHEETPAGEA FAR *ppsp);
                          ^
 D:\DM\BIN\..\include\win32\PRSHT.H(63) : Error: ')' expected to close
 function parameter list with
 typedef UINT (CALLBACK FAR * LPFNPSPCALLBACKW)(HWND hwnd, UINT uMsg,
struct
 _PROPSHEETPAGEW FAR *ppsp);
                          ^
 D:\DM\BIN\..\include\win32\PRSHT.H(64) : Error: ')' expected
         DWORD           dwSize;
                              ^
 D:\DM\BIN\..\include\win32\PRSHT.H(89) : Error: ';' expected following
 declaration of struct member
         DWORD           dwFlags;
                               ^
 D:\DM\BIN\..\include\win32\PRSHT.H(90) : Error: 'DWORD' is already defined
 Fatal error: too many errors
 --- errorlevel 1

 I believe richedit.h includes the prsht.h file. I'm not trying to create a
 property sheet control. I am using richedit though.

 Any thoughts?

 Thanks... Gary.
Mar 03 2003