摘要: 以下std::tr1::bind(&GameLevel::health, currLevel, _1) 报错error C2065: '_1' : undeclared identifier原因见MSDN\Standard C++ Library TR1 Extensions Reference\<functional> (TR1)Object_1 ObjectDescription Placeholders for replaceable arguments.namespace ... 阅读全文
posted @ 2013-01-22 14:08 浑身胆满脸魄 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 如何让两个安装程序(setup.exe),共享同一个component? 要实现的效果是,两个程序共享同一个dll,当两个程序中有一个被卸载掉时,这个dll仍存在,不随着第一个卸载而从系统中删除,因为另一个程序还要用它嘛。而当两个程序都被卸载时,这个dll被卸载掉。 原谅我几乎用了8个多小时才搞明白...痛苦地搜索和阅读过程就不赘述了,总之在帮助里找到一条靠谱的信息,帮助里的索引是Refcounting Shared Files内容如下Windows Installer has a built-in mechanism for installing shared files. If the.. 阅读全文
posted @ 2013-01-22 14:00 浑身胆满脸魄 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 在本机上成功编译运行的setup.exe,换到一个另一个机器上运行setup.exe时弹出“内部错误2235,Runtimeflags, select 'component','RuntimeFlags','Keypath','Attributes' from 'component' where 'component'=?”提示框。无法运行。 在英文的论坛上(谷歌出来的)有人如是说: You can get this if there are no components or features in 阅读全文
posted @ 2013-01-22 13:50 浑身胆满脸魄 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 目的一些文件,在安装过程中使用,在安装结束后从目标机器上删除。那么这些文件应该放在安装工程的哪里呢?分析以licence.txt(安装过程中常见的版权声明之类)为例寻求,因为这个文件亦是只在安装过程中需要的,安装过程结束后删掉。★帮助SUPPROTDIR中的说明SUPPORTDIRDuring setup initialization, InstallShield Developer locates a folder on the target system into which it can copy temporary files and files that were compresse 阅读全文
posted @ 2013-01-22 13:39 浑身胆满脸魄 阅读(957) 评论(1) 推荐(0) 编辑
摘要: 1、使用std命名空间中的东西,需要#include <iostream>,还有一个可疑的<iostream.h>是什么呢? <iostream.h>是为了兼容以前的C++代码,相当于在C中调用库函数,使用全局namespace,不加using namespace std那句也识别std中的名称。<iostream>是为了支持新的标准,新标准规定C++头文件不加.h。<iostream>中没有定义全局命名空间,必须using std;这样才能正确使用C++标准程序库中的所有标识符。2、关于命名空间using namespace std 阅读全文
posted @ 2013-01-22 13:14 浑身胆满脸魄 阅读(245) 评论(0) 推荐(0) 编辑