donvittorio
Programmer
Hi,
I'm using Delphi 4 (not through choice!) and Windows XP, and I'm getting some odd behaviour when calling the Windows API function GetWindowsEx.
If I run in debug mode (i.e. from Delphi) this incorrectly returns MajorVersion = 4, MinorVersion = 0 (which is Windows NT). If I run the executable outside of Delphi it correctly returns MajorVersion = 5, MinorVersion = 1.
I need to write some code that only executes on XP, so this is seriously hampering my ability to debug my code!
If anybody has any ideas why this is happening I'd be very interested to hear them
Thanks
Steve
I'm using Delphi 4 (not through choice!) and Windows XP, and I'm getting some odd behaviour when calling the Windows API function GetWindowsEx.
If I run in debug mode (i.e. from Delphi) this incorrectly returns MajorVersion = 4, MinorVersion = 0 (which is Windows NT). If I run the executable outside of Delphi it correctly returns MajorVersion = 5, MinorVersion = 1.
I need to write some code that only executes on XP, so this is seriously hampering my ability to debug my code!
If anybody has any ideas why this is happening I'd be very interested to hear them
Thanks
Steve