473,396 Members | 2,030 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,396 software developers and data experts.

[BUG] VS 2005 and MFC Extension DLL with /CLR

When I try to compile a MFC extension dll with /CLR in VS 2005 Beta 2. I
get the following link errors:

LNK2005: error _DLLMain@12 already defined in MyMFCDll.obj File:
mfcs80ud.lib
LNK2005: error _pRawDllmain already defined in MyMFCDll.obj File:
mfcs80ud.lib

Google seems to hint that this is a bug in VS 2005 beta 2 wizard.
Unfortuantely I am not able to switch to a later build since I am using
WPF (formerly known as Avalon) wich only works with VS 2005 beta 2 and
it doesn't look like there will be a version that works with vs 2005
final anytime soon.
So is there a way to wor around this issue and get rid of this error ?

Nov 17 '05 #1
2 2923
bonk schrieb:
When I try to compile a MFC extension dll with /CLR in VS 2005 Beta 2. I
get the following link errors:

LNK2005: error _DLLMain@12 already defined in MyMFCDll.obj File:
mfcs80ud.lib
LNK2005: error _pRawDllmain already defined in MyMFCDll.obj File:
mfcs80ud.lib

Google seems to hint that this is a bug in VS 2005 beta 2 wizard.
Unfortuantely I am not able to switch to a later build since I am using
WPF (formerly known as Avalon) wich only works with VS 2005 beta 2 and
it doesn't look like there will be a version that works with vs 2005
final anytime soon.
So is there a way to wor around this issue and get rid of this error ?

I found a coment about it in this bugtrack:

http://lab.msdn.microsoft.com/produc...4-54741ae3f773

it says:

"This is a wizard code gen bug which we have fixed in our latest code.
DllMain needs to be in its own unmanaged source file."

how could I do that (correct what the codegen wizard did wrong) ?
Nov 17 '05 #2
Looks like I found a workaround and I reported it here:

http://lab.msdn.microsoft.com/Produc...ID=FDBK27870#1

I really have no clue why that workaround works. I don't see why the
order of the files in the .vcproj should matter. Can anyone explain this
to me ?

bonk schrieb:
bonk schrieb:
When I try to compile a MFC extension dll with /CLR in VS 2005 Beta 2.
I get the following link errors:

LNK2005: error _DLLMain@12 already defined in MyMFCDll.obj File:
mfcs80ud.lib
LNK2005: error _pRawDllmain already defined in MyMFCDll.obj File:
mfcs80ud.lib

Google seems to hint that this is a bug in VS 2005 beta 2 wizard.
Unfortuantely I am not able to switch to a later build since I am
using WPF (formerly known as Avalon) wich only works with VS 2005 beta
2 and it doesn't look like there will be a version that works with vs
2005 final anytime soon.
So is there a way to wor around this issue and get rid of this error ?

I found a coment about it in this bugtrack:

http://lab.msdn.microsoft.com/produc...4-54741ae3f773
it says:

"This is a wizard code gen bug which we have fixed in our latest code.
DllMain needs to be in its own unmanaged source file."

how could I do that (correct what the codegen wizard did wrong) ?

Nov 17 '05 #3

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

Similar topics

4
by: nandyal | last post by:
All, The following script works as intended in MS-Windows and in other Linux boxes, except on the one that runs php 4.3.10. Sorry for the long post. 1) # uname -a Linux bubba 2.4.20 #5 SMP...
4
by: John Cecere | last post by:
I've run into this bug: http://bugs.php.net/bug.php?id=29902 I'm beside myself trying to get around this. My application is dying after processing 20 transactions because there is no way to...
1
by: Koen | last post by:
Hi all, I created a little database to manage my e-books. The program will synchronize a table with the contents of a directory. Works great. Because I keep additional info (like keywords) to...
2
by: Kenneth Myhra | last post by:
Hi all, We are trying to make an ISAPI Filter, in .NET by implementing the IHttpModule interface, that will authorize the request for certain binary file types (GET), this is working fine. But we...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
0
by: ShaneO | last post by:
I am trying to do the following - OpenFileDialog1.Filter = "Filename without Extension|*." OpenFileDialog1.ShowDialog() (Note that the Filename Filter has no extension, which is a...
16
by: Lighter | last post by:
Is this a Bug of VS 2005? We know size_t is not a built-in data type in C++, rather, it is just a typedef declaration. However, I found the following code could be normally compiled with VS...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 408 open ( -9) / 3585 closed (+20) / 3993 total (+11) Bugs : 968 open ( +8) / 6505 closed ( +7) / 7473 total (+15) RFE : 267 open...
6
by: Stef Mientki | last post by:
hello, I'm trying to embed a debugger into an editor. I'm only interested in high level debugging. The first question is what debugger is the best for my purpose ? (pdb, pydb, rpdb2, smart...
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: 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: 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
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
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
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...
0
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
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,...

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.