当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: 1,理论上支持任何数据库,以Acess为例,结构如下图body.
 

 

 ·酒店管理(链表和文件操作)    »显示摘要«
    摘要:#include <stdio.h>#include <stdlib.h>#include <string.h> #define len sizeof(guest)#define filename_len 10#define null 0#define format "\n%20d%20s%20d\n"#define true 1#define false 0 struct guest{ int nu......
 ·iis中搭建多个web站点     »显示摘要«
    摘要:在思归的博客中曾经提到过iis中创建多个web站点的三个方法和相关文章1,每个网站用不同的ip2,每个网站用不同的port (cookies 会有问题)3,每个网站用不同的host headers今天刚好碰到类似的问题:公司申请了两个域名,想要把这两个域名指向同一个ip下的两个不同的站点.因为思归提供的链接都英文的,所以在这里我在用中文描述一下方法3的步骤:1,设置dns,把域名指向公共的ip我在windows2003安装了dns服务器测试了一下: 建立两......


使用自定义的类CSetODBC(一)
1,理论上支持任何数据库,以acess为例,结构如下图

【相关文章:使用WMFL实现可配置Windows窗体

【扩展阅读:将一个图片按比例缩放显示在一个Frame

body.clientheight)this.width=body.clientheight" src="http://www.338888.com/vcshare/images/upfile/2004615211236.jpg" onmousewheel="return yuzi_img(event,this)"> 【扩展信息:保险应用体系架构 IAA浅谈(六)

2,相关信息记录在ini或注册表中,其结构为:

[数据源]

dsn=testodbc

uid=admin

pwd=

3,动态绑定一个类,更改getdefaultconnect

cstring ccharacterset::getdefaultconnect()

{

csetodbc dlg;

cstring strconnect = "odbc;" + dlg.getconnectstr();

return _t(strconnect);//动态取得odbc

//return _t("odbc;dsn=testodbc");

}

4,使用

void ctestodbcdlg::onrecordset()

{

ccharacterset rs;

csetodbc dlg;

rs.open(dlg.getwritedbstyle());

{//增加记录

rs.addnew();

rs.m_name = "典韦";

rs.m_age = 60;

rs.m_country = "魏";

rs.update();

}

{//修改记录

rs.movefirst();


...   下一页
 ·rule-based system    »显示摘要«
    摘要:1.1 expert system the expert system is “a computer program capable of performing at the level of a human expert in a narrow area”. expert systems, which are considered part of the field of artificial intelligence, are designed to ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE