#include <afxinet.h> //GB2312 转换成 Unicode wchar_t* GB2312ToUnicode(const char* szGBString) { UINT nCodePage = 936; //GB2312 int nLength=MultiByteToWid ...
分类:
编程语言 时间:
2017-06-21 11:21:22
阅读次数:
224
2.5.1 数值类型转换 源类型 目标类型 转换方法 示例 bool、byte、char、double、decimal、float、long、short、sbyte、string、uint、ulong、ushort int Convert.ToInt32(Type value) string int ...
分类:
其他好文 时间:
2017-06-13 19:48:58
阅读次数:
257
转自原文 error C2440 “static_cast” 无法从“void (__thiscall C* )(void)... error C2440: “static_cast”: 无法从“LRESULT (__thiscall CTextProgressCtrl::* )(UINT,LPCT ...
分类:
其他好文 时间:
2017-06-13 10:14:26
阅读次数:
1399
#include<reg52.h> //包括头文件。普通情况不须要修改。头文件包括特殊功能寄存器的定义 #define uchar unsigned char #define uint unsigned int sbit LED0=P1^0;//定义按键位置 sbit LED1=P1^1; sbit ...
分类:
其他好文 时间:
2017-06-07 10:14:30
阅读次数:
169
1.bool CServerSocket::initSocket(const char* ip=NULL,const UINT &port);//会出现默认参数为2的错误 解决方案: //C++语法规定:只要有一个默认参数,那么该参数后面的所有参数都必须指定默认值//所以将initSocket的两个 ...
分类:
编程语言 时间:
2017-06-05 22:21:28
阅读次数:
146
mysql历史数据清理sql:truncatetablehistory_log;truncatetabletrends_uint;truncatetabletrends;truncatetablehistory_text;truncatetablehistory_str;truncatetablehistory_uint;truncatetablehistory;
分类:
数据库 时间:
2017-06-05 14:22:22
阅读次数:
272
视图类中加入OnCtlColor()函数: IDC_STATIC1为静态文本框ID HBRUSH CAngleView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CFormView::OnCtlColor(pDC ...
分类:
编程语言 时间:
2017-06-04 21:27:02
阅读次数:
159
#include<reg52.h> #include<stdio.h> #include<intrins.h> #define uchar unsigned char #define uint unsigned int sbit dula=P2^6; sbit wela=P2^7; sbit adw ...
分类:
其他好文 时间:
2017-06-02 12:46:56
阅读次数:
236
1、分类 工作者线程 -主要用于后台的耗时的操作,通常没有用户界面 用户界面线程 -拥有独立的用户界面 2、使用 2.1工作者线程的使用 1--首先实现线程的回调函数,函数原型:UINT MyControlingFunction(LPVOID pParam); 2--创建和启动工作者线程 AfxBe ...
分类:
编程语言 时间:
2017-05-29 22:54:16
阅读次数:
300
WM_CTLCOLOR,响应函数:CWnd::OnCtlColor afx_msg HBRUSH OnCtlColor( CDC* pDC, //当前要绘制的控件的设备上下文的指针 CWnd* pWnd, //当前要绘制的控件的指针 UINT nCtlColor //要绘制的控件的类型 ); 1、改 ...
分类:
其他好文 时间:
2017-05-29 20:32:40
阅读次数:
247