www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - DWORD32, DWORD64,

↑ ↓ ← "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
↑ ↓ 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
↑ ↓ "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
↑ ↓ 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
↑ ↓ "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
↑ ↓ → "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