首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

怎么获取数据库驱动程序名称

2012-02-25 
如何获取数据库驱动程序名称....实在不知道怎么弄了.如题[解决办法]哈哈,你小子....记着,在窗体上放置一个

如何获取数据库驱动程序名称
....实在不知道怎么弄了.如题

[解决办法]
哈哈,你小子....
记着,在窗体上放置一个TSession控件,然后写下面的代码:
this-> Session1-> SessionName= "MySession ";
this-> Session1-> Active=true;
this-> ListBox1-> Clear();
TStringList *MyList=new TStringList();
this-> Session1-> GetDriverNames(MyList);
for(int i=0;i <MyList-> Count;i++)
{
this-> ListBox1-> Items-> Add(MyList-> Strings[i]);
}
delete MyList;

当然你要放一个ListBox控件哈

热点排行