摘要:
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
能巴
阅读(280)
评论(0)
推荐(0)

浙公网安备 33010602011771号