Solved

why no _ATL_MIN_CRT in debug mode

Posted on 2001-06-14
10
346 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to adjust sheet 1 96
Windows Process running 3 66
What the difference between blend and Visual Studio 3 412
Please explain "Multi-Tenant Services" 5 123
In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
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…

739 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