473,385 Members | 1,769 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,385 software developers and data experts.

MFC conflict with .NET

I'm trying to add some CLR code to a legacy VC6.0 code. I've compiled with
the 3005 compiler and eliminated the conflicts in debug mode. Adding the
/CLR option and compiling in release mode has not been successful.

As a test, I built a wizard generated mfc application using doc.view. It
complies without .clr just fine. Switching to /clr for the whole project
generates 8 link warnings, LNK4248.

When I try to compile only one module with /clr (which is what I would like
to do with the legacy app), I get 33 warnings of C4744 and 4 warnings of
LNK4248.

Again, this is with code generated by the mfc wizard. What gives? Am I to
ignore the warnings?
Feb 4 '06 #1
2 1316
Hi,

Those linker warnings can be expected, it seems. If I understand Ronald
Laeremans correctly, they are harmless in VC2005.
http://www.mcse.ms/archive108-2004-10-1183198.html

The C4744 warnings are caused by this, according to MSDN:
C4744 is emitted only when files are compiled with /GL. For more
information, see /GL (Whole Program Optimization).

disabling whole program optimization shoulod take care of that, then.

kind regards,
Bruno.

"ClydeL" <Cl****@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
I'm trying to add some CLR code to a legacy VC6.0 code. I've compiled
with
the 3005 compiler and eliminated the conflicts in debug mode. Adding the
/CLR option and compiling in release mode has not been successful.

As a test, I built a wizard generated mfc application using doc.view. It
complies without .clr just fine. Switching to /clr for the whole project
generates 8 link warnings, LNK4248.

When I try to compile only one module with /clr (which is what I would
like
to do with the legacy app), I get 33 warnings of C4744 and 4 warnings of
LNK4248.

Again, this is with code generated by the mfc wizard. What gives? Am I
to
ignore the warnings?

Feb 5 '06 #2
Thanks for the info.

"Bruno van Dooren" wrote:
Hi,

Those linker warnings can be expected, it seems. If I understand Ronald
Laeremans correctly, they are harmless in VC2005.
http://www.mcse.ms/archive108-2004-10-1183198.html

The C4744 warnings are caused by this, according to MSDN:
C4744 is emitted only when files are compiled with /GL. For more
information, see /GL (Whole Program Optimization).

disabling whole program optimization shoulod take care of that, then.

kind regards,
Bruno.

"ClydeL" <Cl****@discussions.microsoft.com> wrote in message
news:9B**********************************@microsof t.com...
I'm trying to add some CLR code to a legacy VC6.0 code. I've compiled
with
the 3005 compiler and eliminated the conflicts in debug mode. Adding the
/CLR option and compiling in release mode has not been successful.

As a test, I built a wizard generated mfc application using doc.view. It
complies without .clr just fine. Switching to /clr for the whole project
generates 8 link warnings, LNK4248.

When I try to compile only one module with /clr (which is what I would
like
to do with the legacy app), I get 33 warnings of C4744 and 4 warnings of
LNK4248.

Again, this is with code generated by the mfc wizard. What gives? Am I
to
ignore the warnings?


Feb 6 '06 #3

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

Similar topics

0
by: Adam | last post by:
Hi I had Ruby 1.6.8-8 for Windows installed on my WinXP Pro machine prior to installing Python 2.3. After installing Python 2.3, I tried to <----- screen output of python interactive command...
12
by: Web Developer | last post by:
Hi, Question: Why is there an inherent conflict between uncompromising efficiency and portability in C++? Regards WD
0
by: VHR | last post by:
Hi, I apologize for posting this a second time, but no one replied from the other group where I posted it. I have a design master and 4 replicas that I have successfully synced on about 4-5...
0
by: vb | last post by:
Hi, Sorry, I am new to C#, so this can be a very simple question. I am using some of DevExpress components in my application.My References in the Solution(for DevExpress) are: DevExpress.Data;...
4
by: crystal | last post by:
I've checked the threads but haven't been able to come up with a solution to my issue. Help...... I have a simple form based on a table. Within the form is a subform that is also, through a Q,...
1
by: lorirobn | last post by:
Hi, I have a query that I have been using as a record source for a form with no problems. I just created a new "addnew" form, and added 20 records to the table with this form. The problem I...
14
lotus18
by: lotus18 | last post by:
Hello World I have a problem in detecting the conflict schedule (Day and Time). Day 1. M 2. T 3. W 4. TH 5. F
14
lotus18
by: lotus18 | last post by:
Hello all I have these records on my Day Table for my complete database table please click here 1. M 2. T 3. W 4. TH 5. F 6. S
0
by: =?ISO-8859-1?Q?Gerhard_H=E4ring?= | last post by:
egbert wrote: No, it's just like every other database error - the command fails but the connection is left untouched. Sure, the successful ones ;-) FWIW, this restriction is not any...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.