CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  ATL/ActiveX/COM

ATL & ANSI字符串函数

楼主vclearner(stone)2001-10-22 10:47:48 在 VC/MFC / ATL/ActiveX/COM 提问

        ATL创建组件工程中,我用了strupr函数,在Debug版中一切正常,但在Release版中出现链接错误:  
  LIBCMT.lib(crt0.obj)   :   error   LNK2001:   unresolved   external   symbol   _main  
  ReleaseMinDependency/ATL1.dll   :   fatal   error   LNK1120:   1   unresolved   externals  
        这是为什么,怎样解决?请高手指教 问题点数:20、回复次数:3Top

1 楼wyzegg(蛋)回复于 2001-10-23 00:07:02 得分 10

Project->Setting->C/C++   的Category中选择Preprocessor的Preprocessor   definitions:中去掉_ATL_MIN_CRT_。Top

2 楼param(烦烦烦)回复于 2001-10-23 09:30:29 得分 10

可以看看msdn中的atl教程,里面有关于这个问题的解答,同意楼上的Top

3 楼param(烦烦烦)回复于 2001-10-23 09:33:13 得分 0

Note   for   Release   builds   only       When   the   ATL   COM   AppWizard   generates   the   default   project,   it   defines   the   macro   _ATL_MIN_CRT.   This   macro   is   defined   so   that   you   don't   bring   the   C   Run-Time   Library   into   your   code   if   you   don't   need   it.   The   polygon   control   needs   the   C   Run-Time   Library   start-up   code   to   initialize   the   floating-point   functions.   Therefore,   you   need   to   remove   the   _ATL_MIN_CRT   macro   if   you   want   to   build   a   Release   version.   To   remove   the   macro,   click   Settings   on   the   Project   menu.   In   the   Settings   For:   drop-down   list,   choose   Multiple   Configurations.   In   the   Select   project   configuration(s)   to   modify   dialog   box   that   appears,   click   the   check   boxes   for   all   four   Release   versions,   then   click   OK.   On   the   C/C++   tab,   choose   the   General   category,   then   remove   _ATL_MIN_CRT   from   the   Preprocessor   definitions   edit   box.  
   
  Top

相关问题

  • 字符串函数?
  • 字符串函数
  • 字符串比较函数
  • 字符串处理函数
  • 字符串函数问题
  • 字符串匹配函数?
  • 请问如果要在C#中传递字符串给VC ATL COM 函数,COM函数如何定义参数
  • 求判断一字符串在数组中字符串函数?
  • 求函数:截取字符串
  • 急问处理字符串函数

关键词

  • c/c++
  • atl
  • release
  • crt
  • preprocessor
  • macro
  • min
  • project
  • remove
  • box

得分解答快速导航

  • 帖主:vclearner
  • wyzegg
  • param

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo