Nifty Window Tricks And Smart DLL Loading
Posted April 20 2006
Summary: It's an age old question: "How do I use a Windows API function that is not available in all versions of Windows?" The simple answer is that you only call the function if it's available at runtime. You do this by attempting to dynamically load the module where the function resides, and if that succeeds you call the function by address. If you can successfully load the module and get the address of the procedure, it exists in this version of Windows. There's no need to try to identify the version of Windows; either the function exists or it doesn't. In this article Larry Sand demonstrate this technique with some API calls that are only available in Windows 2000 and later, and which allow you to gradually fade in a window and make an area transparent or opaque.
Please log on to read this subscriber-only article. If you do not have a subscription you can purchase one in the ClarionMag store.
Search ClarionMag
From the archives
First Look: C7 Gold Shows Promise
4/16/2009 12:00:00 AM
SoftVelocity released C7 Gold on April 13, 2009. Last-minute changes/fixes include a resolution to many UHEs and the addition of page view in the report designer. Dave Harms takes a look at the gold release.
