- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to include a call to fn. SetProcessDPIAware(), which is available in the Vista OS but not XP OS. However, I need to compile and link on an XP machine.
The program tests for the Vista OS before calling SetProcessDPIAware(), and the INTEFACE block for SetProcessDPIAware() is included in the IVF program.
Is there a way that an executable IVF program can be generated on XP without producing a link error, and that will still be able to call fn. SerProcessDPIAware() when run on Vista?
Thanks for any comments or information.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You would have to dynamically load the Windows DLL that defines this routine (user32.dll) and then call GetProcAddress to see if it's there. If so, then you can call it. See the sample DynamicLoad for an example of loading a DLL and call ing a procedure in it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page