0

The reference manual for DbgHelp nicely lists all the versions and what changes they introduced. How can I detect the version at compile time?

hmn
  • 716
  • 7
  • 18

1 Answers1

0

The ImagehlpApiVersion function retrieves the version information of the DbgHelp library installed on the system.

To indicate the version of the library with which the application was built, use the ImagehlpApiVersionEx function.

mox
  • 6,084
  • 2
  • 23
  • 35
  • You can use these API in your build process. – mox Jun 19 '12 at 10:59
  • I'd rather not have to do that. Also, technically that's still not "compile-time". – hmn Jun 20 '12 at 11:24
  • You could detect the version of DbgHelp using these API during your Pre-Built step. You cannot (of course) ask your compiler to accomplish that task for you (the job of a compiler is to compile, not more not less). – mox Jun 20 '12 at 11:50