请问在VC下能否使用ActiveRecord的方法提取数据库记录集 是否能在数据库中查询,更改后就直接返回一个类(即一条数据记录集),JAVA里提供了ActiveRecord的方法,VC里有相应的方法吗?在这里先多谢大家各位了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我现在的写法是这样的我有个Customer的类,Customer* m_pCustomer CString sql;sql.Format("select * from Customer where User_Account = '%s");然后再提取这条记录集的每个属性,对pCustomer赋值. itsCustomers.GetCollect("User_Account",cstrTemp); itsCustomers.GetCollect("User_Pass",cstePass); itsCustomers.GetCollect("User_Type",nType); itsCustomers.GetCollect("User_Rest",nRest); m_pCustomer = new Customer(cstrTemp.GetBuffer(),cstePass.GetBuffer(),nType,nRest);比如这句话我想通过一种方法提取这个类,而不是通过对这个类每个成员赋值的方法将它实例化,在VC里有这种方法吗 VC6.0+PostgreSql找不到组件 如何得到客户窗口大小?高手来啊 如何直接编辑CListBox和CComboBox中的内容? 为什么我的CForm不调用OnInitialUpdate()?但调用构造函数,但在大多数机器上是可以正常运行的,只有在个别机器上是这个样,有哪位大哥 如何把recordset保存为excel文件? 编译出错,有谁能解 如何用vc截获word中的事件?? 这段异常处理为什么不起作用? 多文档/视图中激活不同视图的问题 用vc写的程序在没有安装vc的电脑上功能不全 初学者求救:XML在vc解析时遇到的问题【在线等】 如何将正在播出的声音录下来并保存?
我有个Customer的类,Customer* m_pCustomer
CString sql;
sql.Format("select * from Customer where User_Account = '%s");
然后再提取这条记录集的每个属性,对pCustomer赋值.
itsCustomers.GetCollect("User_Account",cstrTemp);
itsCustomers.GetCollect("User_Pass",cstePass);
itsCustomers.GetCollect("User_Type",nType);
itsCustomers.GetCollect("User_Rest",nRest);
m_pCustomer = new Customer(cstrTemp.GetBuffer(),cstePass.GetBuffer(),nType,nRest);
比如这句话我想通过一种方法提取这个类,而不是通过对这个类每个成员赋值的方法将它实例化,在VC里有这种方法吗