自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(86)
  • 收藏
  • 关注

原创 TODO.......

child项目

2023-09-14 09:23:40 103

原创 OpenGL 函数列表

opengl的笔记

2023-09-13 23:01:47 268

原创 vc6----fltk-1.1.10

vc6+fltk

2023-07-27 21:56:17 153

原创 Access-VBA

access操作vba

2023-03-10 03:30:47 362 1

原创 STL 容器操作

stl 的各种容器操作方式

2022-12-04 00:14:01 406

原创 c++ 组合模式示例

c++ 组合模式示例,vc6.0已编译通过

2022-11-20 17:25:45 563

原创 EXCEL---VBA

vba 宏

2022-10-30 23:12:21 97

原创 c++ 设计模式之简化理解

通俗易懂的设计模式举例说明

2022-10-11 17:16:31 204

原创 C51 长整型 取模取余

C51 的长整型转字符取模取余

2022-10-07 21:15:29 738

原创 MFC 参考代码....

MFC的消息捕获并处理

2022-09-28 20:18:49 305

原创 mfc控件 --动态生成与事件CButton CEdit CTreeCtrl

控制的动态生成与事件响应

2022-09-24 19:28:34 660

原创 项目---伪码区

项目类中的子组件类

2022-09-14 21:30:40 130

原创 arx 实体标准

arx 标准的实体新建代码

2022-09-03 20:15:26 199

原创 arx 块操作 头文件

arx

2022-09-03 12:12:05 324

原创 MFC--CRuntimeClass的应用

在MFC动态识别 CRuntimeClass的类

2022-08-14 19:32:16 185

原创 MFC 公用函数和函数指针和动态库

公共用函数,方便转换

2022-07-30 07:59:27 229

原创 odbc excel--2022-07-21

vc 读excel 表格

2022-07-21 20:01:34 240

原创 c++ 文件读写

文件读写的简化版

2022-07-17 18:25:17 524

原创 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 864

原创 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 221

原创 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 1006

原创 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 238

原创 链表内的数据操作算法

1. 先把链表中的数据放入一个按关键值取出,放入一个向量表,有重复的不加入2. 按向量表的关键值再依次对比计算出链表中的每个对应关键值的数量

2022-04-10 15:09:30 205

原创 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 454

原创 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 727

原创 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 600

原创 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 483

原创 固定玻璃输出到excel表中

//#include "Box.h"#include <afxtempl.h>typedef CTypedPtrList<CObList , CBox*> CBoxList;typedef CTypedPtrMap <CMapStringToPtr, CString, int*> CRecords;///////////////////////////////////////////////////////////////////////////// ..

2022-03-31 23:53:04 463

原创 OLE DB EXCEL

#include <afxdb.h>#include <odbcinst.h>void CTestExcelDlg::OnButton3(){ // TODO: Add your control notification handler code here //写入EXCEL CDatabase database; CString sDriver = _T( "MICROSOFT EXCEL DRIVER (*.XLS)" ...

2022-03-28 23:26:08 275

原创 List To BinarySearchTree

void CTestView::OnDraw(CDC* pDC){ CTestDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: add draw code for native data here //EmptyAndSerializeToList(); if(pT) { if(pT->GetRoot()) { pT-> ...

2022-03-27 14:51:39 1151

原创 BinarySearchTree

#include "Box.h"#include <afxtempl.h>typedef CTypedPtrList<CObList , CBox*> CBoxList;typedef CTypedPtrMap <CMapStringToPtr, CString, int*> CRecords;struct BinarySearchTreeNode{ CBox * data ; BinarySearchTreeNode *leftC...

2022-03-27 14:43:25 865

原创 MFC-VIEW 缩放 平移

public: CPoint pt1; CPoint pt0; int sc;CTestDxfView::CTestDxfView(){ // TODO: add construction code here sc = 1;}void CTestDxfView::OnDraw(CDC* pDC){ CTestDxfDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); // TODO: ad...

2022-03-22 20:40:19 749

原创 CtypedPtrMap 例子

#include <afxtempl.h>typedef CTypedPtrMap <CMapStringToPtr, CString, int*> CRecords; CRecords m_Records; CString str = "abc"; int *pRecord = new int(47); m_Records.SetAt(str, pRecord); POSITION pos = m_Records.GetStar...

2022-03-19 08:49:56 471

原创 可串行化的类样式

#include "MyObject.h"#include <AFXTEMPL.H> typedef CTypedPtrList<CObList, CMyObject*> CMyList; CMyList ml;CTestDoc::~CTestDoc(){ while (!ml.IsEmpty()) { delete ml.GetHead(); ml.RemoveHead(); }}...

2022-03-13 12:31:05 570

原创 MFC 简单数据串行化

int X[8];BOOL CTestDoc::OnNewDocument(){ if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) for(int i= 0 ; i<8 ; i++) { X[i] = -1;...

2022-03-13 09:29:30 159

原创 为链表的输入排序

DataInput dlg ; int num = 0 ; if(dlg.DoModal() == IDOK) num = dlg.m_Input ; //为用户的输入设置限制 if(num > 0) { //以下功能为链表的输入排序 CAge* a =new CAge(num); if(pListx->IsEmpty()) { ...

2022-03-12 16:29:18 145

原创 二叉树 串行化 Serialize(CArchive& ar)

void CTestDoc::Serialize(CArchive& ar){ T.Serialize(ar); if (ar.IsStoring()) { // TODO: add storing code here } else { // TODO: add loading code here }}void BinarySearchTree::Serialize(CArch...

2022-03-12 01:04:50 513

原创 利用兼容DC创建缩略图

void CTestView::OnDrawIcon(CDC *pDC){ CClientDC dc(this); CDC m_compatibleDc ; if (m_compatibleDc.CreateCompatibleDC(&dc)) //判断是否创建了兼容DC { CRect rect; GetClientRect(&rect); //获得客户区矩形的区域 CBit...

2022-03-12 00:45:43 377

原创 CListCtrl操作方法

/////////////////////////////////////////////////// m_ListCtrl.Create( WS_VISIBLE //| WS_TABSTOP | WS_CHILD //| WS_BORDER //| TVS_HASBUTTONS //| TVS_LINESATROOT /...

2022-03-08 23:52:42 204

原创 加载弹出式菜单

//加载菜单 CMenu menu; menu.LoadMenu(IDR_MENU1); // 读取资源 ClientToScreen(&point); menu.GetSubMenu(0) -> TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, point.x, point.y, this ); //先转换座标, 再赋值 ...

2022-03-04 06:48:35 140

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除