06 2013 档案
摘要:转自:http://blog.csdn.net/nuptboyzhb/article/details/7455471源代码:http://download.csdn.net/detail/nuptboyzhb/4221531CSplitterWnd类CSplitterWnd类提供一个分隔器窗口的功能...
阅读全文
摘要:// 1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include using namespace std;//#include class animal{public: // void sleep() { cout0) { cout0, fish breathe"breathe();//"animal breathe" //pFh->breathe();//error pFh->animal::breathe();//"animal breathe" pFh->b
阅读全文
摘要:void CMyDlg::OnInitDialog()//Check1 初始化为选中状态void CMyDlg::OnInitDialog(){CDialog::OnInitDialog(); // TODO: 在此添加额外的初始化 ((CButton*)GetDlgItem(IDC_CHECK1))->SetCheck(TRUE); return TRUE; // return TRUE unless you set the focus to a control // 异常: OCX 属性页应返回 FALSE}//单击事件定义void CMyDlg::OnBnClickCheck1()
阅读全文
摘要:VC++编程时,经常会监控某个算法的计算时间,以确定算法的效率。编码举例如下,1 //========start: algorithm time=============2 //3 SYSTEMTIME st1;4 GetLocalTime(&st1);//获取算法处理前,系统时间5 //6 //========start: algorithm time=============。。。。。。。。// algorithm processing 1 //========end: algorithm time============= 2 ...
阅读全文
摘要:vc 获取当前时间(2010-02-10 11:34:32)http://wenku.baidu.com/view/6ade96d049649b6648d7475e.html1.使用CTime类CString str;//获取系统时间CTime tm;tm=CTime:: GetCurrentTime_r();str=tm.Format("现在时间是%Y年%m月%d日 %X");MessageBox(str,NULL,MB_OK);2: 得到系统时间日期(使用GetLocalTime)SYSTEMTIME st;CString strDate,strTime;GetLoca
阅读全文
摘要:MFC EXTENT DLL编程 类输出,形式===MyDllTest.h====class AFX_EXT_CLASS MyDllTest{ ,,,,,};==MyDllTest.cpp====#incloud"stdafx.h".......在类定义文件中,一定要使用 预编译头文件 #inclo...
阅读全文
摘要:最近在做dll封装,摸着石头过河,过程中一些问题解决经验做个小结。DLL工程: MyDllTest一、DEBUG和RELEASE版本生成DLL区分工程编译时,会有两种选择,DEBUG和RELEASE版本,一般提供dll库也对应有两种,有两种办法可以实现:1.1我们可以为生成的库文件定义不同的名字以区...
阅读全文
摘要:转自:http://87656352.blog.163.com/blog/static/444905422009416318247/在Visual C++.NET2005中,默认的字符集形式是Unicode,但在VC6.0等工程中,默认的字符集形式是多字节字符集(MBCS:Multi-Byte C...
阅读全文

浙公网安备 33010602011771号