473,419 Members | 1,660 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

delayload as pragma: fixed in Whidbey?


The following linker directive

#pragma comment (linker, "/delayload:xy.dll")

which was valid in VC 6 produces just a warning in VC 7.1 (though the
directive is ok, IMO).

Is this fixed in the Whidbey release?
br, Stefan
Nov 17 '05 #1
6 6555
No, this never worked reliably. It was a bug to allow it in 6.0. One that we
fixed later by adding the warning.

Ronald Laeremans
Visual C++ team

"Stefan Slapeta" <st****@slapeta.com> wrote in message
news:40**********************@tunews.univie.ac.at. ..

The following linker directive

#pragma comment (linker, "/delayload:xy.dll")

which was valid in VC 6 produces just a warning in VC 7.1 (though the
directive is ok, IMO).

Is this fixed in the Whidbey release?
br, Stefan

Nov 17 '05 #2
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> schrieb im
Newsbeitrag news:uh**************@TK2MSFTNGP10.phx.gbl...
No, this never worked reliably. It was a bug to allow it in 6.0. One that we fixed later by adding the warning.


I don't understand what is the speciality about this option? Why can't I
pass others to the linker and this one not?

Stefan
Nov 17 '05 #3
Ronald, could you please explain what is wrong with delayload in vc6?
Does delayloading work if specified via project options?
I'm just going to use a delayload dll in my project...

Thanks!
- PA
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message news:uh**************@TK2MSFTNGP10.phx.gbl...
No, this never worked reliably. It was a bug to allow it in 6.0. One that we
fixed later by adding the warning.

Ronald Laeremans
Visual C++ team

"Stefan Slapeta" <st****@slapeta.com> wrote in message
news:40**********************@tunews.univie.ac.at. ..

The following linker directive

#pragma comment (linker, "/delayload:xy.dll")

which was valid in VC 6 produces just a warning in VC 7.1 (though the
directive is ok, IMO).

Is this fixed in the Whidbey release?
br, Stefan


Nov 17 '05 #4
Delay loading is fine. Adding a delayload by using the pragma isn't
guaranteed to work.

The problem is that the linker parses the pragma generated data beyond the
point where it already made some decisions that it cannot undo that _may_
conflict with delayloading this dll.

Ronald

"Pavel A." <pa*****@geeklife.com> wrote in message
news:ud**************@TK2MSFTNGP09.phx.gbl...
Ronald, could you please explain what is wrong with delayload in vc6?
Does delayloading work if specified via project options?
I'm just going to use a delayload dll in my project...

Thanks!
- PA
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message

news:uh**************@TK2MSFTNGP10.phx.gbl...
No, this never worked reliably. It was a bug to allow it in 6.0. One that we fixed later by adding the warning.

Ronald Laeremans
Visual C++ team

"Stefan Slapeta" <st****@slapeta.com> wrote in message
news:40**********************@tunews.univie.ac.at. ..

The following linker directive

#pragma comment (linker, "/delayload:xy.dll")

which was valid in VC 6 produces just a warning in VC 7.1 (though the
directive is ok, IMO).

Is this fixed in the Whidbey release?
br, Stefan



Nov 17 '05 #5
Thanks!

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message news:ud**************@TK2MSFTNGP09.phx.gbl...
Delay loading is fine. Adding a delayload by using the pragma isn't
guaranteed to work.

The problem is that the linker parses the pragma generated data beyond the
point where it already made some decisions that it cannot undo that _may_
conflict with delayloading this dll.

Ronald

"Pavel A." <pa*****@geeklife.com> wrote in message
news:ud**************@TK2MSFTNGP09.phx.gbl...
Ronald, could you please explain what is wrong with delayload in vc6?
Does delayloading work if specified via project options?
I'm just going to use a delayload dll in my project...

Thanks!
- PA
"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message

news:uh**************@TK2MSFTNGP10.phx.gbl...
No, this never worked reliably. It was a bug to allow it in 6.0. One that we fixed later by adding the warning.

Ronald Laeremans
Visual C++ team

"Stefan Slapeta" <st****@slapeta.com> wrote in message
news:40**********************@tunews.univie.ac.at. ..
>
> The following linker directive
>
> #pragma comment (linker, "/delayload:xy.dll")
>
> which was valid in VC 6 produces just a warning in VC 7.1 (though the
> directive is ok, IMO).
>
> Is this fixed in the Whidbey release?
>
>
> br, Stefan



Nov 17 '05 #6
Ronald Laeremans [MSFT] wrote:
The problem is that the linker parses the pragma generated data beyond the
point where it already made some decisions that it cannot undo that _may_
conflict with delayloading this dll.

Thanks, I understand (maybe you should add some hint in the documentation).

Could you please have another look at the parser defect I reported above?

Thanks,

Stefan
Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Shri | last post by:
Can anybody tell me where i can find a detailed document on #pragma .... --shri
1
by: Mark Smith | last post by:
Hi Group, Are there any examples of class for storing fixed width number strings such as phone number and social security numbers. This class would do thing like valid that the number is all...
4
by: Stefan Slapeta | last post by:
Hi all, 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...
1
by: Gustavo L. Fabro | last post by:
Greetings! Going directly to the point: myclass.h: //-------------------------------------- #pragma managed //Forward declaration
2
by: JR | last post by:
I'm developing in VS.NET 2002 and I'm having trouble working around the issue with page inheritance and the VS.NET Form Designer. When I create a base class for my form, and inherit from it, I...
15
by: muttaa | last post by:
Hello all, I'm a beginner in C...May i like to know the difference between a #pragma and a #define.... Also,yet i'm unclear what a pragma is all about as i can find topics on it only in...
0
by: rrenaud | last post by:
What is the reason for delayload=False in the FileCookieJar.__init__ function? It doesn't seem to be used in any of the code that ships with python2.4, and it seems to directly contradict the...
26
by: Rick | last post by:
I'm told that "#pragma once" has made it into the ISO standard for either C or C++. I can't find any reference to that anywhere. If it's true, do any of you have a reference I can use? ...
0
debasisdas
by: debasisdas | last post by:
PRAGMA:-Signifies that the statement is a pragma (compiler directive). Pragmas are processed at compile time, not at run time. They pass information to the compiler. A pragma is an instruction to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.