我用 InstallShield6做了一个安装程序,其中加入了BDE,BDE Alias,PATH
和TYPE , 但是将安装程序安装后,数据源并没有加入到ODBC中去,请问,如何将数据源自动加入到ODBC中。
和TYPE , 但是将安装程序安装后,数据源并没有加入到ODBC中去,请问,如何将数据源自动加入到ODBC中。
解决方案 »
- 程序版本号的问题
- 类似MSN、QQ那样托盘可以显示消息提醒和上线提醒是怎么做的
- 重复调用MDI窗口时,调不到最前面来,请高手看看我的代码!
- 百分在线等待!!!!!!!!!!!!!!!!!!
- 选中整条的字段问题:
- 关于listview的问题!!(在线)
- 已知窗体的Rect或Region,如何在窗体周围画边框,就象SPY++一样?
- 如何判断win98,95,2000系统是否安装打印机,安装就显示
- 怎样学习XML
- 窗体外消息如何定义?!!!!!! 各位高手,谢谢 ...
- 比如我的表有个字段employee,我要想在程序中得知他的类型,怎么办
- 在线等待SQL问题(如何统计一个表中某年某月字段'mm'的总和,表中有一'日期'字段)
var wReg:TRegistry;
tmppath:array[0..255] of char;
syspath:string;
const
ProMsg='测试ODBC数据源';
begin
GetSystemDirectory(tmppath,255);
syspath:=strpas(tmppath);
wReg:=TRegistry.Create;
with wReg do
begin
RootKey:=HKEY_LOCAL_MACHINE;
if OpenKey('Software\ODBC\ODBC.INI\ODBC Data Sources',true) then
writestring(DataSource,'microsoft visual foxpro driver')
else
begin
application.MessageBox('ODBC初始化错误!',ProMsg,MB_OK) ;
result:=false;
EXIT;
end;
closekey;
if openkey('Software\ODBC\ODBC.INI\'+DataSource,true)then
begin
WriteString('backgroundFetch','yes');
WriteString('collate','STROKE');
WriteString('Deleted','yes');
WriteString('Description','vfp数据源');
WriteString('Driver',SysPath+'\vfpodbc.dll');
WriteString('exclusive','no');
WriteString('SetNoCountOn','no');
WriteString('SourceDB',tmpDBpath);
WriteString('sourceType','DBF');
end
else
begin
application.MessageBox('ODBC初始化错误!',ProMsg,mb_ok);
result:=false;
EXIT;
end;
closekey;
end;
result:=true;
end;
unrecognize identifier.难道我的delphi安装的不全,可是我是完全安装的呀,
请问这是为什么?
这是为什么?