摘要:1) Most important is the "VersionIndependentProgID". This is the name to be used in an ObjCreate, ObjGet or ObjEvent function. http://www.51testing.com/?uid-9605-action-viewspace-itemid-810588...
阅读全文
摘要:内部主动跳出. 1): while(true) { if(….) break; } 外部标示退出. 2): while(flag) { if(….) ….; }
阅读全文
摘要:#include <stdlib.h>int func(){ int OOXX ; for(int i =0; i<201302028; i++) { if( OOXX=3 && rand()%333 == i ?true:false ) //因为优先级'&&'比'='高. 像下面加个括号就行了. break; if( (OOXX=4) && rand(...
阅读全文
摘要:ActiveX Container Test. MicroSoft Web ActiveX使用问题. 要选择,才能使容器中的控件激活(不然Invoke Methoes 会): 调用ActiveX给出的方法: ////////////////////////////////////////////////////////////////////////...
阅读全文
摘要:1)Release版本,树,的节点数据结构,不初始化,会出现错误.估计传来了空页面,不满足条件所以没有赋值给子节点,但根节点有了,因此,访问到非法了. 2) void xx(bool b) { if(b == true) AfxMessageBox("true"); if(b == false) AfxMessageBox("false"); } ...
阅读全文
摘要:正确获得某子控件的客户区坐标:CRect rect =hwnd->GetScreenRect();ScreenToClient(rect);而不是: GetClientRect(hwnd);我认为该函数名字起的有误导,应该叫GetBounds(hwnd);GetSize();
阅读全文
摘要:/* re.h #define UNICODE #include <windows.h> */ /*net_net.h #include <windows.h> void net_fuc(); */ /*net_net.cpp #include "net_net.h" void net_fuc() { ::MessageBox(NULL, ...
阅读全文
摘要:有两种运行库,第一种包含有DEBUG版本的DLL和别的一些我不知道的文件。该运行库是从vc2008sp1补丁包里提出来的。第二种是微软官网上随处可以见到的,比第一个小,因为不包含DEBUG版本。 1)Visual C++ 2008 x86 Runtime Setup VC_x86Runtime.exe 2)Microsoft Visual C++ 2008 SP1 Redistribu...
阅读全文