如何获取数据库驱动程序名称
....实在不知道怎么弄了.如题
[解决办法]
哈哈,你小子....
记着,在窗体上放置一个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控件哈