Solved

why no _ATL_MIN_CRT in debug mode

Posted on 2001-06-14
10
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 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