05 2013 档案

摘要:在头文件中声明函数例如 afx_msg void onNum(UINT uID)在.cpp文件中添加函数体 void CCalculatorDlg::OnNum(UINT uID) { UINT index=uID-IDC_NUM_0; CString num; num.Format(_T("%d"),index); AfxMessageBox(num); }添加消息映射 ON_CONTROL_RANGE(BN_CLICKED,IDC_NUM_0,IDC_NUM_9,OnNum) 第一个参数 事件 第二个参数 控件的第一个id 第三个参数 空间的最后一个id 第四个参... 阅读全文
posted @ 2013-05-31 09:04 ahuo 阅读(361) 评论(0) 推荐(0) 编辑
摘要:int maxlen=1024*1024; std::vector<byte> buf; FILE* f= fopen( "c:/f.jpg", "rb" ); string signature(maxlen, ' '); maxlen = fread( &signature[0], 1, maxlen, f ); fclose(f); buf.resize(maxlen); signature = signature.substr(0, maxlen); memcpy(&buf[0],&signatu 阅读全文
posted @ 2013-05-16 15:27 ahuo 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2013-05-08 17:09 ahuo 阅读(232) 评论(0) 推荐(0) 编辑
摘要:stdafx.h 加入#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 阅读全文
posted @ 2013-05-03 16:40 ahuo 阅读(464) 评论(0) 推荐(0) 编辑
摘要:#include "stdafx.h"#include <cv.h> #include <highgui.h> IplImage *Image1; CvPoint PointArray1[6]; CvPoint PointArray2[4]; CvScalar Color; int PolyVertexNumber; int Shift; int main() { CvSize ImageSize1 = cvSize(1000,700); Image1 = cvCreateImage(ImageSize1, IPL_DEPTH_8U, 3); Ipl 阅读全文
posted @ 2013-05-02 23:35 ahuo 阅读(1118) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示