www.digitalmars.com         C & C++   DMDScript  

c++ - DWORD32, DWORD64,

reply "Yochanan" <yochanan israel.net> writes:
Hi,

I was trying to compile the xcrashreport files (from codeproject.com)  in 
DMC -- and am getting compiler errors from MS's dbghelp.h  ---

DMC doesn't seem to recognize DWORD32, DWORD64, PIMAGE_NT_HEADERS32, and 
PIMAGE_NT_HEADERS64 keywords  -- at least so far.

Is there a work around?

Thanks.

Yochanan
Jun 29 2006
parent reply Walter Bright <newshound digitalmars.com> writes:
Yochanan wrote:
 I was trying to compile the xcrashreport files (from codeproject.com)  in 
 DMC -- and am getting compiler errors from MS's dbghelp.h  ---
 
 DMC doesn't seem to recognize DWORD32, DWORD64, PIMAGE_NT_HEADERS32, and 
 PIMAGE_NT_HEADERS64 keywords  -- at least so far.
 
 Is there a work around?

Where are DWORD32, etc., defined on your system?
Jun 29 2006
parent reply "Yochanan" <yochanan israel.net> writes:
The DWORD32, DWORD64, etc.'s are defined in BaseTsd.h in the "include" 
subdirectory of the "Microsoft SDK" folder.  The PIMAGE_...'s seem all to be 
in WinNT.h in the same sub-directory.

"Walter Bright" <newshound digitalmars.com> ??? 
??????:e81m9h$18l9$1 digitaldaemon.com...
 Yochanan wrote:
 I was trying to compile the xcrashreport files (from codeproject.com)  in 
 DMC -- and am getting compiler errors from MS's dbghelp.h  ---

 DMC doesn't seem to recognize DWORD32, DWORD64, PIMAGE_NT_HEADERS32, and 
 PIMAGE_NT_HEADERS64 keywords  -- at least so far.

 Is there a work around?

Where are DWORD32, etc., defined on your system?

Jul 03 2006
parent reply Walter Bright <newshound digitalmars.com> writes:
Yochanan wrote:
 The DWORD32, DWORD64, etc.'s are defined in BaseTsd.h in the "include" 
 subdirectory of the "Microsoft SDK" folder.  The PIMAGE_...'s seem all to be 
 in WinNT.h in the same sub-directory.
 
 "Walter Bright" <newshound digitalmars.com> ??? 
 ??????:e81m9h$18l9$1 digitaldaemon.com...
 Yochanan wrote:
 I was trying to compile the xcrashreport files (from codeproject.com)  in 
 DMC -- and am getting compiler errors from MS's dbghelp.h  ---

 DMC doesn't seem to recognize DWORD32, DWORD64, PIMAGE_NT_HEADERS32, and 
 PIMAGE_NT_HEADERS64 keywords  -- at least so far.

 Is there a work around?



Just copy the definitions to your project files, and it should work.
Jul 03 2006
parent reply "Yochanan" <yochanan israel.net> writes:
thanks Walter,

This is working --  I have 2 new small questions.

The compile is getting stuck on IsDebuggerPresent() (function not 
recognized), which the DM help says is supported as a Win Nt function.  I 
looked for a header file with its declaration in \DM\include without 
success.  How do I include it?

This one is probably obvious, however, let me ask-- will I need to convert 
MS's dbghelp.lib from COFF to OMF format before linking it in to the 
project?  If so, can you give me a link as to where to look for directions 
with this?

Thanks.

"Walter Bright" <newshound digitalmars.com> ??? 
??????:e8d1t4$u1u$1 digitaldaemon.com...
 Yochanan wrote:
 The DWORD32, DWORD64, etc.'s are defined in BaseTsd.h in the "include" 
 subdirectory of the "Microsoft SDK" folder.  The PIMAGE_...'s seem all to 
 be in WinNT.h in the same sub-directory.

 "Walter Bright" <newshound digitalmars.com> ??? 
 ??????:e81m9h$18l9$1 digitaldaemon.com...
 Yochanan wrote:
 I was trying to compile the xcrashreport files (from codeproject.com) 
 in DMC -- and am getting compiler errors from MS's dbghelp.h  ---

 DMC doesn't seem to recognize DWORD32, DWORD64, PIMAGE_NT_HEADERS32, 
 and PIMAGE_NT_HEADERS64 keywords  -- at least so far.

 Is there a work around?



Just copy the definitions to your project files, and it should work.

Jul 20 2006
parent "Pavel Vozenilek" <pavel_vozenilek yahoo.co.uk> writes:
"Yochanan" wrote:

 The compile is getting stuck on IsDebuggerPresent() (function not 
 recognized), which the DM help says is supported as a Win Nt function.  I 
 looked for a header file with its declaration in \DM\include without 
 success.  How do I include it?

Old version of SDK. Either add manually BOOL WINAPI IsDebuggerPresent(void); or download newer Win32 SDK.
 This one is probably obvious, however, let me ask-- will I need to convert 
 MS's dbghelp.lib from COFF to OMF format before linking it in to the 
 project?  If so, can you give me a link as to where to look for directions 
 with this?

http://www.digitalmars.com/ctg/coff2omf.html (available on CD) /Pavel
Jul 20 2006