逆水行船

别人的天堂,是我的异乡;无端的繁华,倍添我的惆怅

 

2008年1月23日

在mfc中动态创建按钮

摘要: 第一步:在Resource.h中,添加按钮ID:ID_BTN_TEMP = 1001第二步:在View类【CView的子类】中添加一个变量,判断按钮是否已经创建:bool m_bIsCreatButton;第三步:创建一个按钮数组:CBitmapButton *m_bitList[11]第四步:在View类【CView的子类】的构造函数中,初始化bIsCreatButton:m_bIsCreatB... 阅读全文

posted @ 2008-01-23 15:33 荣- 阅读(6945) 评论(2) 推荐(0) 编辑

char转换为double;int转换为char;CString转换为char*

摘要: char转换为doublechar* chaValue = "116.397380;39.908395";double x = 0.0; double y = 0.0; sscanf(chaValue, "%lf;%lf", &x, &y);int转换为charint m_btCommPort = 1; int m_dwBaudrate = 4800;CString strCommPort; st... 阅读全文

posted @ 2008-01-23 14:36 荣- 阅读(9834) 评论(0) 推荐(0) 编辑

导航