Post Reply
Ben 2003-07-16 01:28
Hello, when I try to compile the SysInfo sample code in Visual C++ 6.0, I get a bunch of compiler errors of the "undefined identifier" type. Here are a few of the errors:
'EnumDisplayDevices' : undeclared identifier 'DISPLAY_DEVICE_ACTIVE' : undeclared identifier 'EnumDisplaySettingsEx' : undeclared identifier 'HMONITOR' : undeclared identifier
Does anyone have any ideas why Visual Studio doesn't recognize these functions? Thanks, Ben
|
Christian Studer 2003-07-16 01:34
Hi Ben,
depending on the version of the headers you are using, you might have to define WINVER manually.
Add the following line before including windows.h:
#define WINVER 0x0500
Christian Studer - www.realtimesoft.com
|
Ben 2003-07-16 05:54
Okay, I figured out what it was. I had the orginal Windows SDK from 1998. When I downloaded and installed the current SDK from Microsoft's site, and registered the new SDK with Visual Studio, then it started compiling okay. Thank you for the suggestion. I did try that, and I couldn't figure out why it wouldn't work, until I came across the SDK information somewhere.
-Ben
|
Post Reply
|