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 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
"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
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
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Shri |
last post by:
Can anybody tell me where i can find a detailed document on #pragma ....
--shri
|
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.
|
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
|
by: Gustavo L. Fabro |
last post by:
Greetings!
Going directly to the point:
myclass.h:
//--------------------------------------
#pragma managed
//Forward declaration
|
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...
| |
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...
|
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.
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |