![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Windows Programming
alunlee
这个作者很懒,什么都没留下…
展开
-
内存问题
#include typedef unsigned short WORD;typedef unsigned long DWORD;class A{ WORD m_a1; WORD m_a2;public: A(){ m_a1=1; m_a2=2; } void func(){ printf("m_a1=%d,m_a2=%d" , m_a1 , m_a2); }};class B{ DWOR转载 2009-09-11 22:49:00 · 367 阅读 · 0 评论 -
Thread Local Storage
下面的代码摘自MSDN,对理解TLS很有帮助意义:#include #include #define THREADCOUNT 4 DWORD dwTlsIndex; VOID ErrorExit(LPTSTR); VOID Commo原创 2011-07-04 13:50:55 · 479 阅读 · 0 评论