-
基于MFC 对话框 的数据库 正删改查简单操作 简单易懂
_variant_t var; //通过_variant_t和_bstr_t这两个类,就可以方便的把C 类型变量转换成COM中的变量 CString strName,strAge; // 清空列表框 m_AccessList.ResetContent(); strName=strAge=""; // 在ADO操作中建议语句中要常用try...catch()来捕获错误信息, // 因为它有时会经常出现一些想不到的错误。 try { if(!m_pRecordset->BOF)//BOF测试当前表文件或指定文件的记录指针是否指向文件首,若是返回真值(.T.),否则返回逻辑假值(.F.) m_pRecordset->MoveFirst(); else { AfxMessageBox(_T("表内数据为空")); return; } // 读入库中各字段并加入列表框中 while(!m_pRecordset->adoEOF) { var = m_pRecordset->GetCollect("Name"); if(var.vt != VT_NULL) strName = (LPCSTR)_bstr_t(var); var = m_pRecordset->GetCollect("Age"); if(var.vt != VT_NULL) strAge = (LPCSTR)_bstr_t(var); m_AccessList.AddString( strName " --> " strAge ); m_pRecordset->MoveNext(); } // 默认列表指向第一项,同时移动记录指针并显示 m_AccessList.SetCurSel(0); OnLbnSelchangeListaccess(); } catch(_com_error& e) { dump_com_error(e); }
- 2020-05-29下载
- 积分:1
-
基于MFC的BP神经网络分类器
一个简单的BP神经网络分类模型,基于MFC制作,有图形界面
- 2022-04-25 15:26:00下载
- 积分:1
-
15数码难题
系统设计目的:设计一个15数码问题求解搜索系统,初步掌握智能搜索算法中的盲目搜索和启发式搜索这两类基本方法,同时通过具体的问题体会搜索算法、数据结构、概率等知识的综合应用。 系统设计基本要求: 问题描述:一个4×4棋盘,有15张牌1,2,…,15及一个空格,空格周围的牌可以向空格移动。
- 2022-07-01 13:51:45下载
- 积分:1
-
cppsanjiao
我整合前面几个程序的三角剖分程序,蛮好用的,只是在dos下,呵呵
(integrate several procedures before the triangulation process, using very good, the only dos, Oh)
- 2006-12-19 23:56:35下载
- 积分:1
-
LAGchazhi
用于实现拉格朗日差值算法,可用于GPS星历计算(For the Lagrange interpolation algorithm, can be used for GPS ephemeris
)
- 2014-08-14 17:06:42下载
- 积分:1
-
LiteOS Studio V0.3.0.0.part5
Linux 嵌入式可移植开发,帮助大家在研究时提供帮助,希望自己提供的能帮助到大家。(Linux of FPGA. Coule helping others to make the greater products.)
- 2020-06-19 00:40:02下载
- 积分:1
-
lab7
说明: 计算方法的上机编程题,计算方法的上机编程题。计算方法的上机编程题(Method of calculation-on programming problems, the calculation-on programming problems. Programming-on method of calculation problems)
- 2010-03-24 23:09:20下载
- 积分:1
-
ActiveXControl
ACtiveControl
- 2008-11-07 00:33:54下载
- 积分:1
-
SplashScreen
C#程序的启动画面制作方法,源码展示了在Winform下,如何制作启动画面。(C# SplashScreen production method shown in Winform source, how to make the splash screen.)
- 2010-05-27 18:44:15下载
- 积分:1
-
evc的一段很好的代码,能够教会一些必要的知识
evc的一段很好的代码,能够教会一些必要的知识 -EVC good section of code, to the Church some of the necessary knowledge
- 2023-04-04 10:40:03下载
- 积分:1