473,624 Members | 2,612 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

delayload as pragma: fixed in Whidbey?


The following linker directive

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

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 6571
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.a c.at...

The following linker directive

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

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******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP10.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.a c.at...

The following linker directive

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

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*****@geekli fe.com> wrote in message
news:ud******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP10.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.a c.at...

The following linker directive

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

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******** ******@TK2MSFTN GP09.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*****@geekli fe.com> wrote in message
news:ud******** ******@TK2MSFTN GP09.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******** ******@TK2MSFTN GP10.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.a c.at...
>
> The following linker directive
>
> #pragma comment (linker, "/delayload:xy.dl l")
>
> 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
3957
by: Shri | last post by:
Can anybody tell me where i can find a detailed document on #pragma .... --shri
1
1627
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 integers or hex and confirm that the number is the correct length. I f the number is to short return an error or not store the number, etc.
4
7919
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 same in 7.1, I get the message
1
3063
by: Gustavo L. Fabro | last post by:
Greetings! Going directly to the point: myclass.h: //-------------------------------------- #pragma managed //Forward declaration
2
1136
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 can no longer bring up the inherited form in the designer. I get the error "The file failed to load in the Web form designer. please correct the following error, then load it again : Type Abstract" Apparently, others have experienced this problem...
15
3750
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 high-standard books...
0
1054
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 comment following it """ Cookies are NOT loaded from the named file until either the .load() or .revert() method is called.
26
3808
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? Thanks...
0
10679
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 the Oracle compiler that tells it to do something. In this case you are telling Oracle to associate an error that you choose to a variable that you choose. This pragma must go in the declarative section of your block. Types of PRAGMA...
0
8246
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8631
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8490
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4184
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.