> dbghelp.h
> On scanning my PC , I did not find it, so I downloaded and installed the
> latest version of Windows Debugging Tools (version 6.8) . Then I copied the
> dbghelp.dll, dbhhelp.h and dbghelp.lib to my project folder. But on buliding
> the project I am getting the following error:
> c:\amoy\stacktrace\dbghelp.h(1747) : error C2061: syntax error : identifier
> '__out_bcount_opt'
code added to cope with its absence is broken.
The fix is simple:- add this to dbghelp.h -- or -- to your own code
before you include it:
#ifndef __out_ecount_opt
#define __out_ecount_opt(x)
#endif
#ifndef __in_bcount_opt
#define __in_bcount_opt(x)
#endif
#ifndef __out_bcount_opt
#define __out_bcount_opt(x)
#endif
#ifndef __deref_out_opt
#define __deref_out_opt
#endif
You may also get errors with VC6 about PULONG_PTR and ULONG_PTR, which
are
typedefs in the newer versions of Windows.h.
For VC6 you need:
typedef unsigned long ULONG_PTR;
typedef unsigned long *PULONG_PTR;
Alternatively get a more recent copy of the platform SDK and put it in
your include path.
Regards,
Roger.








