VC相关
文章平均质量分 67
qycer
这个作者很懒,什么都没留下…
展开
-
关于DLL搜索路径的顺序问题
来源:http://www.cnblogs.com/clever101 DLL的动态链接有两种方法。一种是加载时动态链接(Load_time dynamic linking)。Windows搜索要装入的DLL时,按以下顺序:应用程序所在目录→当前目录→Windows SY转载 2011-07-22 10:42:29 · 693 阅读 · 0 评论 -
char和wchar_t之间的转换
1. 先设置当地的编码环境 #include setlocale(LC_ALL, " "); 2. char到wchar_t的转换 char s[] = "汉字 "; wchar_t ws[10]; int i; char *p = s; for(i = 0; *p; ++i)转载 2012-03-26 16:58:46 · 420 阅读 · 0 评论 -
DLL资源模块状态切换
先看一个例子:1、创建一个动态链接到MFC DLL的规则DLL,其内部包含一个对话框资源。指定该对话框ID如下: #define IDD_DLL_DIALOG 20002、创建一个基于对话框的mfc应用程序,它包含两个对话框资源,IDD_UI_DIALOG和IDD_EXE_DIALOG。并将后者的ID指定如下: #defi转载 2011-11-03 10:13:06 · 517 阅读 · 0 评论 -
CTime和DWORD类型的相互转换
1.CTime对象转换为DWORD类型CTime time=CTime::GetCurrentTime(); //获取当前时间DWORD timedw = time.GetTime(); //CTime->DWORD2.DWORD类型变量转换为CTime对象原创 2011-09-29 14:45:34 · 916 阅读 · 0 评论 -
Windows防火墙操作代码
/*Windows Firewall 虽然未见得管用,但它对我们软件实施有时候会带来不少的麻烦,所以有时候要干预它的行为,贴一段MS的演示代码,供各位参考。*/#include #include #include #include #include转载 2011-08-24 12:53:03 · 4601 阅读 · 0 评论 -
Microsoft Platform SDK Febrary 2003下载(更新VC6的SDK)[转帖]
Microsoft Platform SDK Febrary 2003下载(更新VC6的SDK)[转帖] 2010-11-13 04:17:48| 分类:VC | 标签:psdk ie8 安装 vc6 sdk |字号大中小 订阅转载 2011-09-19 10:57:22 · 1988 阅读 · 0 评论 -
#param comment宏的使用
语法:#pragma comment( comment-type [," commentstring " ] )comment-type 是一个预定义的标识符,指定注释的类型,应该是compiler, exestr,lib,linker 之一。 commentstrin转载 2011-08-14 14:52:09 · 2885 阅读 · 0 评论 -
VC中Radio控件的用法
先为对话框加上2个radio button,分别是Radio1和Radio2。问题1:如何让Radio1或者Radio2默认选上?如何知道哪个被选上了?关键是选上,“默认”只要放在OnInitDialog()即可。三种方法可以让它选上,第一种:((CButto转载 2011-08-13 11:28:33 · 615 阅读 · 0 评论 -
vc中ComboBox控件用法详解
转自:http://blog.csdn.net/zhaoxiafei/article/details/6982341、改变下拉框大小:先点向下的箭头,就可以调整下拉框大小2、如果 ComboBox 的 Sorted 属性设置为 true, 则新添加项将按字母顺转载 2011-08-13 11:26:50 · 421 阅读 · 0 评论 -
VC 各种情况下的窗口句柄的获取
AfxGetMainWndAfxGetMainWnd获取自身窗口句柄HWND hWnd = AfxGetMainWnd()->m_hWnd;GetTopWindow函数功能:该函数检查与特定父窗口相联的子窗口z序(Z序:垂直屏幕的方向,即叠放次序),并转载 2011-09-01 16:45:28 · 361 阅读 · 0 评论 -
How to write a Windows Service by Jarmo Muukka
What is a Windows Service?A service is a process which does not require user to log on. Service starts when system boots up, it is started from Services applet or when other application starts it.转载 2012-03-29 20:50:45 · 573 阅读 · 0 评论