sinawear

导航

随笔分类 -  VC

ole/com object viewer
摘要: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... 阅读全文

posted @ 2013-07-06 21:44 sinawear 阅读(223) 评论(0) 推荐(0)

程序技巧.
摘要:内部主动跳出. 1): while(true) { if(….) break; } 外部标示退出. 2): while(flag) { if(….) ….; } 阅读全文

posted @ 2013-06-16 15:58 sinawear 阅读(107) 评论(0) 推荐(0)

系统弹出菜单类名是固定的. #32769
摘要: 阅读全文

posted @ 2013-05-01 14:07 sinawear 阅读(266) 评论(0) 推荐(0)

OOXX是多少。。。。&&和=,优先级问题。
摘要:#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(... 阅读全文

posted @ 2013-03-07 14:46 sinawear 阅读(637) 评论(0) 推荐(0)

ActiveX Container Test的使用 和 宏 父类 子类 对象 内存布局.
摘要:ActiveX Container Test. MicroSoft Web ActiveX使用问题. 要选择,才能使容器中的控件激活(不然Invoke Methoes 会): 调用ActiveX给出的方法: ////////////////////////////////////////////////////////////////////////... 阅读全文

posted @ 2013-02-28 19:51 sinawear 阅读(314) 评论(0) 推荐(0)

暗,技巧.
摘要:1)Release版本,树,的节点数据结构,不初始化,会出现错误.估计传来了空页面,不满足条件所以没有赋值给子节点,但根节点有了,因此,访问到非法了. 2) void xx(bool b) { if(b == true) AfxMessageBox("true"); if(b == false) AfxMessageBox("false"); } ... 阅读全文

posted @ 2012-12-10 15:36 sinawear 阅读(155) 评论(0) 推荐(0)

VC客户区坐标和屏幕坐标.
摘要:正确获得某子控件的客户区坐标:CRect rect =hwnd->GetScreenRect();ScreenToClient(rect);而不是: GetClientRect(hwnd);我认为该函数名字起的有误导,应该叫GetBounds(hwnd);GetSize(); 阅读全文

posted @ 2012-11-06 14:54 sinawear 阅读(1309) 评论(0) 推荐(0)

ANSI和UNICODE交叉.
摘要:/* 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, ... 阅读全文

posted @ 2012-05-11 16:13 sinawear 阅读(174) 评论(0) 推荐(0)

VC2008的运行库问题。
摘要:有两种运行库,第一种包含有DEBUG版本的DLL和别的一些我不知道的文件。该运行库是从vc2008sp1补丁包里提出来的。第二种是微软官网上随处可以见到的,比第一个小,因为不包含DEBUG版本。 1)Visual C++ 2008 x86 Runtime Setup VC_x86Runtime.exe 2)Microsoft Visual C++ 2008 SP1 Redistribu... 阅读全文

posted @ 2012-04-25 20:17 sinawear 阅读(604) 评论(0) 推荐(0)