﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-铁观音-文章分类-VC编译类</title><link>http://www.cppblog.com/microli/category/2561.html</link><description>C++编程宝典</description><language>zh-cn</language><lastBuildDate>Thu, 05 Jun 2008 03:03:39 GMT</lastBuildDate><pubDate>Thu, 05 Jun 2008 03:03:39 GMT</pubDate><ttl>60</ttl><item><title> error C2065: 'CoInitializeEx' : undeclared identifier;  解决方法</title><link>http://www.cppblog.com/microli/articles/11916.html</link><dc:creator>铁观音</dc:creator><author>铁观音</author><pubDate>Fri, 01 Sep 2006 03:32:00 GMT</pubDate><guid>http://www.cppblog.com/microli/articles/11916.html</guid><description><![CDATA[
		<p>在stdafx.h中定义(放在#define VC_EXTRALEAN 的下一行)<br />#define _WIN32_WINNT 0x0500<br /><br />实际上你可以看objbase.h的文件中CoInitializeEx的定义:<br /><br />#if (_WIN32_WINNT &gt;= 0x0400 ) || defined(_WIN32_DCOM) // DCOM<br />WINOLEAPI CoInitializeEx(LPVOID pvReserved, DWORD dwCoInit);<br />#endif // DCOM<br /></p>
		<p>**************************************************************</p>
		<p>Header: Declared in objbase.h.<br />Library: Use ole32.lib.<br /><br />另外，别忘了定义_WIN32_DCOM<br /><br /></p>
<img src ="http://www.cppblog.com/microli/aggbug/11916.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/microli/" target="_blank">铁观音</a> 2006-09-01 11:32 <a href="http://www.cppblog.com/microli/articles/11916.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VC编译选项 Release   MiniSize、Release   MinDependecy的区别！</title><link>http://www.cppblog.com/microli/articles/11388.html</link><dc:creator>铁观音</dc:creator><author>铁观音</author><pubDate>Fri, 18 Aug 2006 01:05:00 GMT</pubDate><guid>http://www.cppblog.com/microli/articles/11388.html</guid><description><![CDATA[Release   MiniSize   <br />Release   MinDependecy   <br />Unicoude   Release   MinSize   <br />Unicoude   Release   MinDependency   <br />之间有什么区别呀？都在什么情况下使用？编程的时候要注意些什么？ <br /><br />******************************************************************************************<br /><br />若将“常规”属性页中的“ATL   的使用”属性设置为“静态链接到   ATL”，并将“代码生成”属性页中的“运行时库”属性设置为“单线程   (/ML)”或“多线程   (/MT)”（在   C/C++   文件夹中），则为   <font color="#ff0033">MinDependency   配置</font>。     <br /><br />若将“常规”属性页中的“ATL   的使用”属性设置为“动态链接到   ATL”，并将“在   ATL   中最小使用   CRT”设置为“是”，或将“代码生成”属性页中的“运行时库”属性设置为“多线程   DLL   (/MD)”（在   C/C++   文件夹中），则为   <font color="#ff3333">MinSize   配置</font>。     <br /><br />MinSize   使得输出文件尽可能地小，但要求在目标计算机上安装   ATL71.dll   和   MSVCR71.dll（如果选中了“多线程   DLL   (/MD)”选项）。ATL71.dll   应在目标计算机上注册，以确保具有所有   ATL   功能。要注意，ATL   DLL   的   ANSI   和   Unicode   版本具有相同的名称：ATL71.dll。不能在   Windows   98   或   Windows   Me   计算机上重新发布   Unicode   版本；必须用   ANSI   版本（位于产品   CD   或   DVD   的   Win\System\Ansi   文件夹中）。   <br />    <br />如果为   MinDependency   目标生成   ATL   或   OLE   DB   模板项目，则不需要在目标计算机上安装和注册   ATL71.dll，虽然可能获得较大的程序映像。   <br /><br />******************************************************************************************<br /><br />我的工程在DEBUG中连接没有问题，可是设置为release   mindependency确保错如下：   <br />  Generating   Code...   <br />  Linking...   <br />        Creating   library   ReleaseMinDependency/RemoteUnlock.lib   and   object   ReleaseMinDependency/RemoteUnlock.exp   <br />  LIBCMT.lib(crt0.obj)   :   error   LNK2001:   unresolved   external   symbol   _main   <br />  ReleaseMinDependency/RemoteUnlock.dll   :   fatal   error   LNK1120:   1   unresolved   externals   <br />  Error   executing   link.exe.   <br />  不知道什么问题，借用宝地请帮忙 <br /><br /><font color="#009933">你用了一些_ATL_MIN_CRT条件下，不支持的CRT函数，去掉_ATL_MIN_CRT   </font><br /><br /><br /><img src ="http://www.cppblog.com/microli/aggbug/11388.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/microli/" target="_blank">铁观音</a> 2006-08-18 09:05 <a href="http://www.cppblog.com/microli/articles/11388.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>