Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

why no _ATL_MIN_CRT in debug mode

Posted on 2001-06-14
10
Medium Priority
?
356 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 150 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 
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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

721 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