Click here to Skip to main content
15,922,145 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Allocate byte array in ATL server Pin
Jörgen Sigvardsson26-Jan-04 13:03
Jörgen Sigvardsson26-Jan-04 13:03 
GeneralRe: Allocate byte array in ATL server Pin
Chris Losinger26-Jan-04 13:18
professionalChris Losinger26-Jan-04 13:18 
GeneralRe: Allocate byte array in ATL server Pin
Jörgen Sigvardsson26-Jan-04 13:06
Jörgen Sigvardsson26-Jan-04 13:06 
GeneralRe: Allocate byte array in ATL server Pin
Chris Losinger26-Jan-04 13:19
professionalChris Losinger26-Jan-04 13:19 
GeneralRe: Allocate byte array in ATL server Pin
Lim Bio Liong27-Jan-04 6:08
Lim Bio Liong27-Jan-04 6:08 
GeneralRe: Allocate byte array in ATL server Pin
Chris Losinger27-Jan-04 8:59
professionalChris Losinger27-Jan-04 8:59 
GeneralRe: Allocate byte array in ATL server Pin
Lim Bio Liong27-Jan-04 15:47
Lim Bio Liong27-Jan-04 15:47 
GeneralProblem compiling ATL minDependency Visual .NET 2003 Pin
Wim Jans26-Jan-04 10:36
Wim Jans26-Jan-04 10:36 
Hello,

I have a problem compiling a project using the MinDependency option.
It gives me all kind of linke errors like these

<br />
Linking...<br />
LIBCMT.lib(crt0dat.obj) : error LNK2005: __osplatform already defined in atlmincrt.lib(atlinit.obj)<br />
LIBCMT.lib(crt0dat.obj) : warning LNK4006: __osplatform already defined in atlmincrt.lib(atlinit.obj); second definition ignored<br />
   Creating library .\ReleaseMinDependency/myproj.lib and object .\ReleaseMinDependency/myproj.exp<br />
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup<br />
.\ReleaseMinDependency/myproj.dll : fatal error LNK1120: 1 unresolved externals<br />


Now, if I understand it correctly, this is because _ATL_MIN_CRT is defined.
I goto the project properties, set 'Minimize CRT usage in ATL' to No and 'Use of ATL' to Statically linked.

When I cross check with C/C++ Preprocessor I see _ATL_MIN_CRT is gone from the Inherited Values in the 'Preprocessor Definitions' property.

Now, when I compile and when the linkstep failed, I check the build.log and surprisingly I see the /D "_ATL_MIN_CRT" flag.
Did I do something wrong? Do other options (/GX) flag automatically add it to the cl.exe parameters?

Even when I check the C/C++ commandline in the project preoperties tab, it is not there.

Any clue?

Thanks



Wim
GeneralWTL Helper class: Message Map unused Pin
peterchen26-Jan-04 9:00
peterchen26-Jan-04 9:00 
GeneralRe: WTL Helper class: Message Map unused Pin
Jörgen Sigvardsson26-Jan-04 9:26
Jörgen Sigvardsson26-Jan-04 9:26 
GeneralRe: WTL Helper class: Message Map unused Pin
peterchen26-Jan-04 9:44
peterchen26-Jan-04 9:44 
GeneralRe: WTL Helper class: Message Map unused Pin
Jörgen Sigvardsson26-Jan-04 9:52
Jörgen Sigvardsson26-Jan-04 9:52 
GeneralIPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax25-Jan-04 20:37
Vermithrax25-Jan-04 20:37 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Jason De Arte27-Jan-04 6:40
Jason De Arte27-Jan-04 6:40 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax27-Jan-04 6:42
Vermithrax27-Jan-04 6:42 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax27-Jan-04 10:29
Vermithrax27-Jan-04 10:29 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Jason De Arte27-Jan-04 11:36
Jason De Arte27-Jan-04 11:36 
GeneralRe: IPersistPropertyBag/IPersistPropertyBagImpl question Pin
Vermithrax27-Jan-04 11:37
Vermithrax27-Jan-04 11:37 
GeneralATL Component &gt; .NET issue Pin
dabossuk24-Jan-04 6:20
dabossuk24-Jan-04 6:20 
QuestionHow to call a ATL component from vbscript Pin
Inam23-Jan-04 22:45
Inam23-Jan-04 22:45 
AnswerRe: How to call a ATL component from vbscript Pin
Jörgen Sigvardsson24-Jan-04 9:51
Jörgen Sigvardsson24-Jan-04 9:51 
GeneralSigning ActiveX Controls Pin
Monty221-Jan-04 0:17
Monty221-Jan-04 0:17 
GeneralRe: Signing ActiveX Controls Pin
LunaticFringe21-Jan-04 0:56
LunaticFringe21-Jan-04 0:56 
GeneralRe: Signing ActiveX Controls Pin
Michael Dunn21-Jan-04 12:54
sitebuilderMichael Dunn21-Jan-04 12:54 
GeneralXP Themes not woking in an ActiveX control in IE Pin
Jason De Arte19-Jan-04 19:40
Jason De Arte19-Jan-04 19:40 

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.