摘要: The scope of an object determines which scripts can use that object. By default, when you create an object instance, the object has page scope. Any script command in the same ASP page can use a page-scope object; the object is released when the .asp file completes processing the request. The recomme 阅读全文
posted @ 2010-07-17 19:57 Max Woods 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 很多朋友都会有过这样的经历,为什么在主线程中创建窗口且窗口工作很正常,但一移到非主线程(有的朋友喜欢叫它为工作线程),却无法正常工作. 本文就这个问题和各位探讨,可能无法做到尽善尽美,但能抛砖引玉也算是欣慰了. 在主线程中创建一个能够正常工作的窗口,估计地球人都知道. 这是一段工作正常的代码: #include \"windows.h\" HWND g_hWnd = NULL; HINSTANCE g_hInst; LRESULT WndProc(HWND hWnd,UINT wMsg,WPARAM wParam,LPARAM lParam) { return DefWindowProc 阅读全文
posted @ 2010-07-17 11:57 Max Woods 阅读(752) 评论(0) 推荐(0) 编辑