随笔分类 - [4] VC&MFC
(Microsoft Foundation Classes)
摘要:VC6.0中用ado连接数据库出错 1. 在stdafx.h中添加 #import "c:\\program files\\common files\\system\\ado\\msado15.dll" no_namespace rename("EOF", "adoEOF") rename("BOF
阅读全文
摘要:注册数据源 首先,用Access新建一个数据库文件,例如:StudentInfo.mdb 然后注册。 1)依次【控制面板】-》【管理工具】-》【数据源】,将弹出”ODBC数据库管理器“。注意,win7默认的是建立64位的注册(右键属性可以看到目标C:\Windows\System32\odbcad3
阅读全文
摘要:void CTestDlg::OnButtonAdd() { // TODO: Add your control notification handler code here //动态创建按钮 /* if ( FALSE == m_bIsCreate ) // 亦可以通过静态变量 static BOOL bIsCreate = FALSE; { m_btn.Create("Lee...
阅读全文
摘要:VC6.0中测试如下 以下转载:https://www.cnblogs.com/Caiqinghua/archive/2009/02/16/1391190.html CString的构造函数CString( );例:CString csStr;CString( const CString& stri
阅读全文