Hi David,
the message
abc.lib(xy.obj) : warning LNK4229: invalid directive
'/DELAYLOAD:some_lib.dll' encountered; ignored
tells me, that is has not been dropped but that the linker obviously has a
problem with interpreting it correctly. The project option doesn't help in
some cases where you automatically want to import a library based on using a
particular cpp file. (You also speficy #pragma comment (lib, "....") then!)
Stefan
"David Lowndes" <da****@mvps.org> schrieb im Newsbeitrag
news:n1********************************@4ax.com...
I wonder how to specify the delayload option for the linker in a cpp
file.In VC 6 this was possible by writing
#pragma comment (linker, "/delayload:some_lib.dll")
When I do the same in 7.1, I get the message
Stefan,
I can only assume that's been dropped from the compiler. In VS you can
specify the delay load DLLs in the IDE's linker project settings.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq