上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 63 下一页
摘要: 1. 资源Basic Visual C++ 支持十种资源:加速键、位图、光标、对话框、HTML、图标、菜单、串表、工具条和版本信息。 各种资源就是堆数据而已,最终都会被嵌入到EXE文件里的数据区中。需要的时候就通过函数加载到内存中使用。和数据库一样的。各种资源通过ID来唯一确 定,就像数据库用关键字来确定一样。不同的资源由于类型不一样可以使用等值的ID,如同数据库里的每一个表... 阅读全文
posted @ 2009-04-13 22:28 能巴 阅读(1666) 评论(0) 推荐(0)
摘要: Static/globa dataLifecycle:All static data and global data would be stored in static/global storage area for the whole application. Dll's static and global data would be there of course. In general, t... 阅读全文
posted @ 2009-04-07 23:14 能巴 阅读(399) 评论(0) 推荐(0)
摘要: [转载自:http://www.vckbase.com/document/viewdoc/?id=1720] C++的static有两种用法:面向过程程序设计中的static和面向对象程序设计中的static。前者应用于普通变量和函数,不涉及类;后者主要说明static在类中的作用。 一、面向过程设计中的static 1、静态全局变量 在全局变量前,加上关键字static,该变量就被定... 阅读全文
posted @ 2009-04-07 23:09 能巴 阅读(359) 评论(0) 推荐(0)
摘要: 1) 堆是由低地址向高地址扩展,栈是由高地址向低地址扩展。2) 堆是不连续的空间,栈是连续的空间。3) 在申请空间时,栈的分配要比堆的快。对于堆,先遍历存放空闲存储地址的链表、修改链表、再进行分配;对于栈,只要剩下的可用空间足够,就可分配到,如果不够,那么就会报告栈溢出。4) 栈的生命期最短,到函数调用结束时;静态存储区的生命期最长,到程序结束时;堆中的生命期是到被我们手动释放时(... 阅读全文
posted @ 2009-04-07 22:57 能巴 阅读(440) 评论(0) 推荐(0)
摘要: Visual Studio Managing Application Resources You can create and manage resources for your project using the Resource Designer or the Resources page of the Project Designer. Resou... 阅读全文
posted @ 2009-04-07 22:12 能巴 阅读(219) 评论(0) 推荐(0)
摘要: CString::LoadString(UINT nID) Conclusion: the correct way to load string resource by ID is to call CString::LoadString(HINSTANCE hInstance,UINT nID), specifying the dll handler you want to search for.... 阅读全文
posted @ 2009-04-07 22:08 能巴 阅读(377) 评论(0) 推荐(0)
摘要: Dialog Modality—Modal or Modeless Dialogs A dialog can be used in two ways. Basically, it either blocks access (by mouse or keyboard) to any other parts if an application while visible, or it does no... 阅读全文
posted @ 2009-04-07 21:57 能巴 阅读(279) 评论(0) 推荐(0)
摘要: 使用“devenv.exe /edit ”命令在一个已经存在的vs实例里打开文件 原文链接:You can use devenv.exe /edit to open a file in an existing Visual Studio instance 操作步骤: 运行命令:devenv /edit ,可以在IDE里打开文件。 你也可以创建一个cmd文件,例如VSEdit.cmd,在文件里... 阅读全文
posted @ 2009-04-04 10:37 能巴 阅读(490) 评论(0) 推荐(0)
摘要: Macros for Custom Build Commands You can use the File and Directory drop-down lists to insert any of the following directory and filename macros in either grid at the current insertion point location.... 阅读全文
posted @ 2009-04-01 13:13 能巴 阅读(328) 评论(0) 推荐(0)
摘要: Debugging Tools fo Windows From MS: http://www.microsoft.com/whdc/devtools/debugging/default.mspxhttp://www.microsoft.com/whdc/devtools/debugging/debugstart.mspx#aNote:It includes Gflags, which is a p... 阅读全文
posted @ 2009-03-31 13:53 能巴 阅读(225) 评论(0) 推荐(0)
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 63 下一页