02 2018 档案

VC++ Splash Window封装类CSplash
摘要:Splash.h 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2018-02-13 15:50 我来乔23 阅读(575) 评论(0) 推荐(0) 编辑

通过代码注册COM、DLL组件
摘要:注册代码如下: C++ Code 1234567891011121314151617181920212223242526272829303132333435363738 // // // //If returns Zero, DLL successfully registered... // -2  阅读全文

posted @ 2018-02-13 14:22 我来乔23 阅读(612) 评论(0) 推荐(0) 编辑

VC++:ActiveX Test Container
摘要:VC++6.0安装后包含了ActiveX Test Container工具,位置为: "C:\Program Files (x86)\Microsoft Visual Studio\Common\Tools\TSTCON32.EXE" 但是在VS2008以及VS2010中就不能明显地找到这个工具了~ 阅读全文

posted @ 2018-02-13 13:22 我来乔23 阅读(419) 评论(0) 推荐(0) 编辑

[转]VC++下使用ADO操作数据库
摘要:(1)、引入ADO类 1 2 3 #import "c:program filescommon filessystemadomsado15.dll" no_namespace rename ("EOF", "adoEOF") (2)、初始化COM 在MFC中可以用AfxOleInit();非MFC环 阅读全文

posted @ 2018-02-13 10:54 我来乔23 阅读(617) 评论(0) 推荐(0) 编辑

VC++ GetSafeHwnd()和GetSafeHandle()
摘要:GetSafeHwnd()和GetSafeHandle()的主要区别: 使用者不同: (1)窗体使用:GetSafeHwnd()用于获取窗体的安全句柄(即HWND),有了HWND我们就可以方便的对HWND指向的窗体进行所需的操作了; (2)GDI对象使用:GetSafeHandle(),用于获取GD 阅读全文

posted @ 2018-02-13 10:51 我来乔23 阅读(480) 评论(0) 推荐(0) 编辑

VC++ GetSafeHwnd用法
摘要:GetSafeHwnd HWND GetSafeHwnd() const; 当我们想得到一个窗口对象(CWnd的派生对象)指针的句柄(HWND)时,最安全的方法是使用GetSafeHwnd()函数。 为什么呢?通过下面的例子来说明其理由: CWnd* pWnd = FindWindow(_("Exp 阅读全文

posted @ 2018-02-13 10:44 我来乔23 阅读(1829) 评论(0) 推荐(0) 编辑

C++中的const成员函数(函数声明后加const,或称常量成员函数)用法详解
摘要:http://blog.csdn.net/gmstart/article/details/7046140 在C++的类定义里面,可以看到类似下面的定义: 01 class List { 02 private: 03 Node * p_head; 04 int length; 05 …… 06 Pub 阅读全文

posted @ 2018-02-13 10:36 我来乔23 阅读(5896) 评论(0) 推荐(1) 编辑

VC++ Debug条件断点使用
摘要:If you're trying to reproduce a rare event and getting too many false positives with your breakpoints, you can easily make them conditional! Simply sp 阅读全文

posted @ 2018-02-12 11:38 我来乔23 阅读(442) 评论(0) 推荐(0) 编辑

VC++为你的程序增加内存泄露检测
摘要:使用方法: C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 // MFCLeakerTest.cpp : Defines the  阅读全文

posted @ 2018-02-12 11:16 我来乔23 阅读(811) 评论(0) 推荐(0) 编辑

VC++ Debug格式化数值显示
摘要:When you watch variables in the Watch or Quick Watch window, the values are displayed using the default pre-defined visualizers. When it comes to numb 阅读全文

posted @ 2018-02-12 10:55 我来乔23 阅读(352) 评论(0) 推荐(0) 编辑

VC++Debug查看堆对象内容,即使符号已经超出作用范围
摘要:Sometimes you'd like to watch the value of an object (on the heap) even after the symbol goes of scope. When that happens, the variable in the Watch w 阅读全文

posted @ 2018-02-12 10:44 我来乔23 阅读(254) 评论(0) 推荐(0) 编辑

VC++ Debug产生异常时中断程序执行Break on Exception
摘要:It is possible to instruct the debugger to break when an exception occurs, before a handler is invoked. That allows you to debug your application imme 阅读全文

posted @ 2018-02-12 10:36 我来乔23 阅读(371) 评论(0) 推荐(0) 编辑

VS中常用的环境变量
摘要:环境变量名含义 $(SolutionDir) 解决方案目录:即.sln文件所在路径 $(ProjectDir) 项目根目录:, 即.vcxproj文件所在路径 $(Configuration) 当前的编译配置名称,比如Debug,或Release $(ProjectName) 当前项目名称 $(SolutionName) 解决方案名称 $(OutDir) 项目输出文件... 阅读全文

posted @ 2018-02-12 10:20 我来乔23 阅读(253) 评论(0) 推荐(0) 编辑

VC++Debug避免F11步进不想要的函数中
摘要:It's often useful to avoid stepping into some common code like constructors or overloaded operators. Many times when you debug the code you probably s 阅读全文

posted @ 2018-02-11 17:49 我来乔23 阅读(243) 评论(0) 推荐(0) 编辑

VC++ Debug显示指针所指的array内容
摘要:If you expand a pointer and you only get a single item, just add ",n" to the entry in the watch window where n is the number of elements to expand. Fo 阅读全文

posted @ 2018-02-11 17:32 我来乔23 阅读(305) 评论(0) 推荐(0) 编辑

VC++ 在Watch窗口显示GetLastError值以及详细信息
摘要:You can display the value GetLastError() will return by putting "@err" in your watch window. You can see the error message associated with that value 阅读全文

posted @ 2018-02-11 17:22 我来乔23 阅读(436) 评论(0) 推荐(0) 编辑

VC++ Debug内存值
摘要:Memory Values If you're using the debug heap, memory is initialized and cleared with special values. Typically MFC automatically adds something like t 阅读全文

posted @ 2018-02-11 17:01 我来乔23 阅读(223) 评论(0) 推荐(0) 编辑

VC++ 给你的代码强制加一个硬断点
摘要:类似与Javascript的 debugger; Hard code a debugger breakpoint If you need to insert a hard breakpoint in your code (perhaps because you need to attach to a 阅读全文

posted @ 2018-02-11 16:57 我来乔23 阅读(533) 评论(0) 推荐(0) 编辑

wchat_t与char互转
摘要:C++ Code 1234567891011121314151617181920212223242526 //窄字符转宽字符 void ConvertA2W(wchar_t* the_strw, char* the_str, int len)//注意:默认the_strw和the_str有足够长度的 阅读全文

posted @ 2018-02-09 11:56 我来乔23 阅读(791) 评论(0) 推荐(0) 编辑

使用forever运行nodejs应用
摘要:何为forever forever可以看做是一个nodejs的守护进程,能够启动,停止,重启我们的app应用。 官方的说明是说: A simple CLI tool for ensuring that a given script runs continuously (i.e. forever). 阅读全文

posted @ 2018-02-07 15:53 我来乔23 阅读(974) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示