有效的方法,建立udl文件(txt文件后缀改过来) 系统默认打开ole db provider连接向导 连接成功以后会把连接字符串保存到*.udl文件里面Visual FoxProIf you are using a database container a connection string is the following:strConnection = _T("Driver={Microsoft Visual Foxpro Driver};UID=;" ourceType=DBC;SourceDB=C:\\DatabasePath\\MyDatabase.dbc;Exclusive=No"); If you are working without a database container you must to change the SourceType parameter by DBF as in the following connection string:strConnection = _T("Driver={Microsoft Visual Foxpro Driver};UID=;" "SourceType=DBF;SourceDB=C:\\DatabasePath\\MyDatabase.dbc;Exclusive=No");http://community.csdn.net/Expert/topic/3283/3283231.xml?temp=.3891565
系统默认打开ole db provider连接向导
连接成功以后会把连接字符串保存到*.udl文件里面Visual FoxProIf you are using a database container a connection string is the following:strConnection = _T("Driver={Microsoft Visual Foxpro Driver};UID=;"
ourceType=DBC;SourceDB=C:\\DatabasePath\\MyDatabase.dbc;Exclusive=No");
If you are working without a database container you must to change the SourceType parameter by DBF as in the following connection string:strConnection = _T("Driver={Microsoft Visual Foxpro Driver};UID=;"
"SourceType=DBF;SourceDB=C:\\DatabasePath\\MyDatabase.dbc;Exclusive=No");http://community.csdn.net/Expert/topic/3283/3283231.xml?temp=.3891565