
mfc
文章平均质量分 55
jxb_8888
这个作者很懒,什么都没留下…
展开
-
STL 容器操作
stl 的各种容器操作方式原创 2022-12-04 00:14:01 · 455 阅读 · 0 评论 -
c++ 组合模式示例
c++ 组合模式示例,vc6.0已编译通过原创 2022-11-20 17:25:45 · 625 阅读 · 0 评论 -
c++ 设计模式之简化理解
通俗易懂的设计模式举例说明原创 2022-10-11 17:16:31 · 238 阅读 · 0 评论 -
MFC 参考代码....
MFC的消息捕获并处理原创 2022-09-28 20:18:49 · 367 阅读 · 0 评论 -
mfc控件 --动态生成与事件CButton CEdit CTreeCtrl
控制的动态生成与事件响应原创 2022-09-24 19:28:34 · 745 阅读 · 0 评论 -
-------------ADO记录集----------------
ADO记录集原创 2022-09-14 21:30:40 · 168 阅读 · 1 评论 -
arx 实体标准
arx 标准的实体新建代码原创 2022-09-03 20:15:26 · 258 阅读 · 0 评论 -
arx 块操作 头文件
arx原创 2022-09-03 12:12:05 · 413 阅读 · 0 评论 -
MFC--CRuntimeClass的应用
在MFC动态识别 CRuntimeClass的类原创 2022-08-14 19:32:16 · 224 阅读 · 0 评论 -
odbc excel--2022-07-21
vc 读excel 表格原创 2022-07-21 20:01:34 · 275 阅读 · 0 评论 -
arx 常用操作
AcDbObjectId CArxProject1App::CreateLine(void){ AcGePoint3d ptStart(0, 0, 0); AcGePoint3d ptEnd(100, 100, 0); AcDbLine *pLine = new AcDbLine(ptStart, ptEnd); AcDbBlockTable *pBlockTable; acdbHostApplicationServices()->workingDatabas...原创 2022-05-10 14:12:38 · 951 阅读 · 0 评论 -
arx 对话框
void CArxDialog::OnBnClickedButton2(){ // TODO: 在此添加控件通知处理程序代码 AfxMessageBox(_T("2") ,0,0) ;}void CArxDialog::OnBnClickedButton4(){ // TODO: 在此添加控件通知处理程序代码 BeginEditorCommand(); ads_point pt ; if(acedGetPoint (NULL , _T("\...原创 2022-05-08 12:16:07 · 290 阅读 · 0 评论 -
class 初始化操作
class CAge : public CCmdTarget{public:CAge();virtual ~CAge() ;CAge(UINT in_val) : val(in_val) {}private:UINT val ;public:UINT GetValue(){return val ;}friend bool operator == (const CAge & , const...原创 2022-02-16 19:50:01 · 422 阅读 · 0 评论 -
vector 统计元素出现的次数
// Test.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>#include <vector>#include <algorithm>using namespace std;void show (int p){ cout << p << endl;}int main...原创 2022-04-28 16:26:41 · 1146 阅读 · 0 评论 -
MFC CComboBox 使用例子
//手动设置显示高度(控件右侧小箭头) CComboBox* m_pComboBox = (CComboBox*)GetDlgItem(IDC_COMBO1); CString str; for (int i = 0; i < 20; i++) { str.Format(_T("item string %d"), i); m_pComboBox->AddString(str); }...原创 2022-04-20 18:49:37 · 270 阅读 · 0 评论 -
链表内的数据操作算法
1. 先把链表中的数据放入一个按关键值取出,放入一个向量表,有重复的不加入2. 按向量表的关键值再依次对比计算出链表中的每个对应关键值的数量原创 2022-04-10 15:09:30 · 241 阅读 · 0 评论 -
CTypedPtrList 操作
double CTestView::GetVal(CString name){ double temp = -999999; // Dump the list elements to the debug window. POSITION pos = pSeriesList->GetHeadPosition(); for (int i = 0; i < pSeriesList->GetCount(); i++) { ...原创 2022-04-07 23:27:47 · 493 阅读 · 0 评论 -
ReadExcel
void COutToExcel::TestRead(){ //读入EXCEL CString sItem1, sItem2,sItem3, sItem4; CString sDriver; CString sDsn; CString sFile = _T( "./data/SeriesData.xls" ); // 将被读取的Excel文件名 // 检索是否安装有Excel驱动 "Microsoft Excel Driver (*.xls)"...原创 2022-04-07 00:44:27 · 786 阅读 · 0 评论 -
odbc 捕获异常
try { database.ExecuteSQL(_T( "DROP TABLE test " )); } catch (CDBException *pe) { // The error code is in pe->m_nRetCod...原创 2022-04-04 08:50:42 · 670 阅读 · 0 评论 -
MFC--文件对话框
BOOL CSeriesDataDlg::OnInitDialog(){ CDialog::OnInitDialog(); // TODO: Add extra initialization here DWORD dwExtStyles = m_ListCtrl.GetExtendedStyle(); m_ListCtrl.SetExtendedStyle(dwExtStyles | LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES);...原创 2022-04-01 14:02:59 · 534 阅读 · 0 评论