Solved

why no _ATL_MIN_CRT in debug mode

Posted on 2001-06-14
10
339 Views
Last Modified: 2013-12-04
I was wondering why the preprocessor def _ATL_MIN_CRT is defined in Release mode and not in Debug mode when you create an ATL prjoect  ... what's the rationale behind the difference?
0
Comment
Question by:djbusychild
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 3

Expert Comment

by:elcapitan
ID: 6193989
From microsoft:
Microsoft Active Template Library COM AppWizard generates a release build of your project using macro _ATL_MIN_CRT. Selecting this configuration causes the C run-time (CRT) library startup code to not be linked into your project.

Usually I remove this macro also from the release versions, since it will cause link errors if you are using functions that need the C run time library.

find more at:
http://support.microsoft.com/support/kb/articles/Q165/0/76.ASP

--EC--
0
 
LVL 9

Accepted Solution

by:
ShaunWilde earned 50 total points
ID: 6195283
its a bug (feature) :)
0
 
LVL 5

Author Comment

by:djbusychild
ID: 6196212
I understand what _ATL_MIN_CRT is... I can understand that MAYABE you'd want it so long as you don't use c-runtime stuff... but, I was wnodering why they' don't add it to the DEBUG mode
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 9

Expert Comment

by:ShaunWilde
ID: 6196522
well it's debug - you are not bothered about size in debug
0
 
LVL 5

Author Comment

by:djbusychild
ID: 6196897
sure, but say you were not being conscious about the fact that some things are not available without c-run time , the compiler will let you slide in DEBUG mode but will choke on Release ...
0
 
LVL 3

Expert Comment

by:elcapitan
ID: 6198366
>>but, I was wnodering why they' don't add it to the DEBUG mode
Well, it's another mystery of the universe (Microsoft)...

--EC--
0
 
LVL 5

Author Comment

by:djbusychild
ID: 6198689
so there's no real reason behind this???
damn... wack... ^^ ain't it?

I'll leave it open for the weekend see if anybody has anything to say on Monday and I'll give ya guys points. heh heh -.-;
0
 
LVL 9

Expert Comment

by:ShaunWilde
ID: 6199428
0
 

Expert Comment

by:NickAtBOM
ID: 6205434
I thought that the c-runtime library was left out of the release version to make exe/dll as small as possilble.  I think it was on somebodies mind that these components may travel over the web, and the 25k reduction in size would be of help.
0
 
LVL 5

Author Comment

by:djbusychild
ID: 6207179
Yes, the only reason for including _ATL_MIN_CRT would be to reduce the size, but the fact that this changes the
compile-time behavior is undesirable when the same preprocessor definition is ommited from the DEBUG mode..

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question