Click here to Skip to main content
15,899,314 members
Home / Discussions / COM
   

COM

 
General_ATL_MIN_CRT Pin
SuperGeek1-May-01 13:36
SuperGeek1-May-01 13:36 
GeneralRe: _ATL_MIN_CRT Pin
Michael Dunn1-May-01 16:54
sitebuilderMichael Dunn1-May-01 16:54 
GeneralRe: _ATL_MIN_CRT Pin
Felix Cho1-May-01 17:30
Felix Cho1-May-01 17:30 
GeneralRe: _ATL_MIN_CRT Pin
SuperGeek2-May-01 6:28
SuperGeek2-May-01 6:28 
GeneralRe: _ATL_MIN_CRT Pin
SuperGeek2-May-01 6:19
SuperGeek2-May-01 6:19 
GeneralSnap-in resources Pin
Paul Rogan1-May-01 5:40
Paul Rogan1-May-01 5:40 
Generalprogramers Pin
mohan30-Apr-01 22:49
mohan30-Apr-01 22:49 
GeneralMFC ATL dll link error Pin
30-Apr-01 6:03
suss30-Apr-01 6:03 
Sorry guys I'm pretty new to ATL and COM stuff. The project is a shell extension with MFC support. Been looking at the tutorials on it over and over but can't find out how to fix this problem. After starting a new project I can get it to work. Then after compiling a few times (changing nothing) it ends up giving this link error. It starts happening randomly but never goes away once I first get it.

Linking...
mfcs42.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj)
mfcs42.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj); second definition ignored
Creating library ReleaseMinSize/program.lib and object ReleaseMinSize/program.exp
ReleaseMinSize/program.dll : fatal error LNK1169: one or more multiply defined symbols found

I can start a new project, transplant the code, and have it working for a while till I get this again. I've had to include afxcmn.h, and change my .cpp files to automatic use of precompiled headers. But apart from that I've not really changed anything. I can get the code to work fine in a nonMFC dll (without using MFC components). Removing all MFC statements I've added doesn't help either.
Any idea on how to fix this?

Thanks
-Neil
GeneralRe: MFC ATL dll link error Pin
SuperGeek1-May-01 13:22
SuperGeek1-May-01 13:22 
GeneralRe: MFC ATL dll link error Pin
1-May-01 17:18
suss1-May-01 17:18 
GeneralRe: MFC ATL dll link error Pin
1-May-01 20:16
suss1-May-01 20:16 
GeneralInterface Inheritance Pin
Paul Rogan30-Apr-01 1:22
Paul Rogan30-Apr-01 1:22 
GeneralRe: Interface Inheritance Pin
Pete Bassett30-Apr-01 1:38
Pete Bassett30-Apr-01 1:38 
GeneralRe: Interface Inheritance Pin
Paul Rogan30-Apr-01 1:54
Paul Rogan30-Apr-01 1:54 
GeneralRe: Interface Inheritance Pin
Ryan Park2-May-01 7:59
Ryan Park2-May-01 7:59 
GeneralQuery a specific COM DLL for an interface Pin
Martin Eskildsen29-Apr-01 21:21
Martin Eskildsen29-Apr-01 21:21 
GeneralRe: Query a specific COM DLL for an interface Pin
Michael Dunn29-Apr-01 22:48
sitebuilderMichael Dunn29-Apr-01 22:48 
GeneralRe: Query a specific COM DLL for an interface Pin
Martin Eskildsen29-Apr-01 23:15
Martin Eskildsen29-Apr-01 23:15 
GeneralRe: Query a specific COM DLL for an interface Pin
Michael Dunn30-Apr-01 7:16
sitebuilderMichael Dunn30-Apr-01 7:16 
GeneralRe: Query a specific COM DLL for an interface Pin
Felix Cho30-Apr-01 10:23
Felix Cho30-Apr-01 10:23 
GeneralCustom OLEDB Provider Pin
26-Apr-01 12:12
suss26-Apr-01 12:12 
GeneralA Request(Sorry to post it here) Pin
2-May-01 18:57
suss2-May-01 18:57 
GeneralRe: Custom OLEDB Provider Pin
3-May-01 18:05
suss3-May-01 18:05 
GeneralWTL, Attila, Windowing Pin
26-Apr-01 8:19
suss26-Apr-01 8:19 
GeneralATL/COM and #import directive Pin
25-Apr-01 6:48
suss25-Apr-01 6:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.