/DELAYLOAD (Delay Load Import)
Visual Studio 2005
/DELAYLOAD:dllname
The /DELAYLOAD option causes delayed loading of DLLs. The dllname specifies a DLL to delay load. You can use this option as many times as necessary to specify as many DLLs as you choose. You must link your program with Delayimp.lib or implement your own delay-load helper function.
The /DELAY option specifies binding and loading options for each delay-loaded DLL.
To set this linker option in the Visual Studio development environment
-
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
-
Click the Linker folder.
-
Click the Input property page.
-
Modify the Delay Loaded DLLs property.
To set this linker option programmatically
-
See DelayLoadDLLs.
Must link against dllname.lib and Delayimp.lib
In case it is not clear when you specify:
/DELAYLOAD:dllname.lib
you must still link against dllname.lib, and add a link to Delayimp.lib.
And you have to #include <delayimp.h>.
So be sure to read the details at:
/DELAYLOAD:dllname.lib
you must still link against dllname.lib, and add a link to Delayimp.lib.
And you have to #include <delayimp.h>.
So be sure to read the details at:
Visual
Studio 2008 >
Please
Wait
Visual
Studio >
Please
Wait
Visual C++ >
Please
Wait
Building a
C/C++ Program >
Please
Wait
Linking >
Please
Wait
- 3/24/2010
- drjasonharrison