上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 56 下一页

2018年2月13日

[转]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 阅读(608) 评论(0) 推荐(0) 编辑

VC++ GetSafeHwnd()和GetSafeHandle()

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

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

VC++ GetSafeHwnd用法

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

posted @ 2018-02-13 10:44 我来乔23 阅读(1715) 评论(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 阅读(5836) 评论(0) 推荐(1) 编辑

2018年2月12日

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 阅读(441) 评论(0) 推荐(0) 编辑

VC++为你的程序增加内存泄露检测

摘要: 使用方法: C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 // MFCLeakerTest.cpp : Defines the  阅读全文

posted @ 2018-02-12 11:16 我来乔23 阅读(792) 评论(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 阅读(350) 评论(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 阅读(253) 评论(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 阅读(369) 评论(0) 推荐(0) 编辑

VS中常用的环境变量

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

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

上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 56 下一页

导航