DLLVERSIONINFO2

I had written the help DLLS of CVI 2009 and earlier that referenced DLLVERSIONINFO2 to query and get the DLL version when executing the calling code.  Now when I compile this code on the same system (Win XP) it can not find a definition for it.  It is through the new treatment of WInSDK in CVI 2010?  Someone solved this problem?

It looks like a way to manage this is to define _WIN32_IE by yourself in your code or a compiler command line option.

_WIN32_IE is a legacy thing that goes back to when micro$ oft put hull in Internet Explorer (I suspect that it's when they tried to block everyone using IE but pleaded for her later).  It seems that the 2009 version of the CVI shlwapi.h has defined a default value for _WIN32_IE as 0 x 0501, and then allowed DLLVERSIONINFO2 to get subsequently defined in shlwapi.h.

But the CVI 2010 version of shlwapi.h does not have this default definition.

Documentation MSDN current to use the windows headers says it's "you must define" _WIN32_IE. So maybe microsoft has removed the default definition.

Supposedly, you can set NTDDI_VERSION to a value of version and this will in turn create the various definitions of legacy version (e.g. WINVER) for you, but users comments that it still does not.

Tags: NI Software

Similar Questions

Maybe you are looking for