上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 57 下一页

2017年10月30日

Win API:之GetCurrentThread、GetCurrentThreadId、GetCurrentProcess、GetCurrentProcessId

摘要: Win API:之GetCurrentThread、GetCurrentThreadId、GetCurrentProcess、GetCurrentProcessId 提示: ID 是系统唯一的标识. 所谓虚拟句柄, 就是该句柄只在调用进程的进程中有效, 也不能被继承; 如果用于其他进程需要用 Dup 阅读全文

posted @ 2017-10-30 17:11 我来乔23 阅读(4230) 评论(0) 推荐(0)

Windows API之DuplicateHandle

摘要: 在进程之间共享内核对象句柄的一种方法:DuplicateHandle 简单地说,该函数取得某个进程句柄表中的一个表项,然后把它拷贝到另一个进程的句柄表中。 hSourceProcessHandle:源进程内核句柄(即负责传递内核对象句柄的进程句柄) hSourceHandle:要传递的内核对象句柄 阅读全文

posted @ 2017-10-30 10:46 我来乔23 阅读(2025) 评论(0) 推荐(0)

2017年10月26日

回顾下WinMain

摘要: 我们在学习标准C++的时候,都知道每个应用程序运行时都会先进入入口点函数main,而当从main函数跳出时程序就结束了。在Windows编程里面,也是一样的,只是我们的入口点函数不叫main,叫WinMain,这个函数不同于main,我们不能乱来,它的定义必须与声明保持一致。 C++ Code 12 阅读全文

posted @ 2017-10-26 17:38 我来乔23 阅读(396) 评论(0) 推荐(0)

2017年10月25日

【转】 VC++ 关闭程序后任务管理器进程中进程仍然存在的解决方法

摘要: 转载出处:http://blog.csdn.net/zac_sian/article/details/50809084 可以从以下两个方面进行查找! 1、程序开启了进程,进程中使用了while(1),在程序退出时未能关闭该线程 解决方法: 在主进程类的析构函数结束该线程 2、程序的消息队列未销毁引起 阅读全文

posted @ 2017-10-25 11:00 我来乔23 阅读(1067) 评论(0) 推荐(0)

2017年10月24日

PRINTDLG 打印对话框操作

摘要: 参数说明: lStructSize:本结构大小(字节数) hwndOwner:父窗口句柄(可为NULL) hDevMode:包含打印机设备与环境信息的DEVMODE结构句柄 hDevNames:包含驱动器名、打印机名和输出端口名的设备名结构DEVNAMES句柄 hDC:确定DC或IC(informa 阅读全文

posted @ 2017-10-24 14:29 我来乔23 阅读(3424) 评论(0) 推荐(0)

【转】ATL提供的所有转换宏

摘要: 在头文件<atlconv.h>中定义了ATL提供的所有转换宏,如: A2CW (LPCSTR) -> (LPCWSTR) A2W (LPCSTR) -> (LPWSTR) W2CA (LPCWSTR) -> (LPCSTR) W2A (LPCWSTR) -> (LPSTR) 所有的宏如下表所示: A 阅读全文

posted @ 2017-10-24 13:30 我来乔23 阅读(542) 评论(0) 推荐(0)

2017年10月21日

【转】特殊字符

摘要: http://blog.csdn.net/xuqiang918/article/details/9984163 ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > @ A B C D E F G H I J K L M N O P 阅读全文

posted @ 2017-10-21 19:50 我来乔23 阅读(779) 评论(0) 推荐(0)

VC++/MFC(VC6)开发技术精品学习资料下载汇总

摘要: VC++/MFC(VC6)开发技术精品学习资料下载汇总 阅读全文

posted @ 2017-10-21 19:46 我来乔23 阅读(288) 评论(0) 推荐(0)

CFindReplaceDialog学习

摘要: The CFindReplaceDialog class allows you to implement standard string Find/Replace dialog boxes in your application. Unlike the other Windows common di 阅读全文

posted @ 2017-10-21 19:23 我来乔23 阅读(388) 评论(0) 推荐(0)

CFontDialog学习

摘要: void CMfcFontDlgDlg::OnBtnFont() { // Show the font dialog with all the default settings. CFontDialog dlg; dlg.DoModal(); } void CMfcFontDlgDlg::OnBtnFontSpecial() { // Show the fo... 阅读全文

posted @ 2017-10-21 11:29 我来乔23 阅读(541) 评论(0) 推荐(0)

上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 57 下一页

导航