473,785 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

[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 2944
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
1721
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 Thu Apr 3 12:26:19 BST 2003 i686 i686 i386 GNU/Linux
4
2438
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 close the connection. I've tried downloading and building the latest 5.1 CVS source via cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_1 php-src But this didn't help. The oci_close still always fails.
1
2564
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 the created records in the database and I don't want to lose all that info when I rename a file and synchronise, I've added some code to the program. It works like this: when the filename of a DB records
2
1652
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 also want it to authorize the upload of binary files (PUT), The problem with the PUT-scenario is that the file is *not* uploaded when its extension *is* mapped up in IIS, by mapped up I mean the Application Mappings displayed when clicking on the...
102
7135
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 of its documentation, it is a impeccability. it has or possesses properties of:
0
1008
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 requirement!) When called, no files are shown within the Dialog Box, even though such files exist. If I change the Filter to |*.* or |*.txt etc it works fine and shows all the files of the Filtered type, but this is NOT what I
16
1340
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 2005: // Note that I don't include any header file in this source file
0
312
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 ( +1) / 251 closed ( +0) / 518 total ( +1) New / Reopened Patches ______________________
6
1386
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 debugger, extended debugger ? Second question, in none of the above debuggers (except rpdb2), I can find a "break now", so it seems impossible to me to detect unlimited while loops ?
0
9481
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10341
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...
1
10095
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9954
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
8979
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...
1
7502
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2881
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.