摘要: #define ROW 3072 #define COL 3072 void CQweqweqweDlg::OnCancel() { int i=0,j=0; //取平局后的二位数组 BYTE *rawAvg=new BYTE[COL*ROW*2]; memset(rawAvg,0,sizeof(B 阅读全文
posted @ 2016-02-25 16:20 風行 阅读(236) 评论(0) 推荐(0) 编辑
摘要: DWORD Serial; DWORD Length; GetVolumeInformation("D:",NULL, MAX_PATH,&Serial,&Length, NULL,NULL,MAX_PATH); CString StrSerial; StrSerial.Format("%ud",S 阅读全文
posted @ 2016-02-25 16:19 風行 阅读(221) 评论(0) 推荐(0) 编辑
摘要: void WriteLog(CString Msg) { CTime tm =CTime::GetCurrentTime(); CString str = tm.Format("%Y-%m-%d-%H-%M-%S"); CString sPage = str + " "+Msg+"r"+"n"; C 阅读全文
posted @ 2016-02-25 16:18 風行 阅读(652) 评论(0) 推荐(0) 编辑
摘要: #define _WidthPitch(w) ((w + w + w + 3) & 0xFFFFFFFC) void CTestPanitDlg::OnDaochu() { // TODO: Add your command handler code here CRect rect; GetClie 阅读全文
posted @ 2016-02-25 16:17 風行 阅读(2798) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h" #include "conio.h" void splitname(const char *szfullfilename, char *szpathname, char *szfilename, char *szextname); int main(void) 阅读全文
posted @ 2016-02-25 16:17 風行 阅读(738) 评论(0) 推荐(0) 编辑
摘要: BOOL BMP24to8(char *szSourceFile,char *szTargetFile) { HANDLE hSourceFile=INVALID_HANDLE_VALUE,hTargetFile=INVALID_HANDLE_VALUE; DWORD dwSourceSize=0, 阅读全文
posted @ 2016-02-25 16:16 風行 阅读(628) 评论(0) 推荐(0) 编辑
摘要: void CThreadDlg::OnOne() { // TODO: Add your control notification handler code here for (int i =1; i<=300000;i++) { for (int j =1 ; j<=300000;j++) { f 阅读全文
posted @ 2016-02-25 16:16 風行 阅读(127) 评论(0) 推荐(0) 编辑
摘要: HHOOK hook = NULL; HHOOK hook1 = NULL; LRESULT CALLBACK MouseProc//屏蔽键盘上的鼠标操作 ( int nCode, // hook code WPARAM wParam, // message identifier LPARAM lP 阅读全文
posted @ 2016-02-25 16:14 風行 阅读(520) 评论(0) 推荐(0) 编辑
摘要: void CColorDlgDlg::OnButton1() { COLORREF MyColor=RGB(0,0,0);//定义一个RGB颜色 CColorDialog Dlg(0,CC_FULLOPEN,this);//定义一个颜色对话框对象 if(IDOK==Dlg.DoModal())//如 阅读全文
posted @ 2016-02-25 16:13 風行 阅读(269) 评论(0) 推荐(0) 编辑
摘要: DLL中:cpp #define DLL_API _declspec(dllexport) #include "dll.h" #include "windows.h" #include "stdio.h" int add (int x, int y ) { return x+y ; } int su 阅读全文
posted @ 2016-02-25 16:13 風行 阅读(205) 评论(0) 推荐(0) 编辑