::CoInitialize(NULL);
_ConnectionPtr m_adoConnection_mdb;
m_adoConnection_mdb.CreateInstance("ADODB.Connection");_CommandPtr m_commandptr;
m_commandptr.CreateInstance(__uuidof(Command));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
这句话XP下没任何问题,2000下就出错,请各位大牛指教是怎么回事那
_ConnectionPtr m_adoConnection_mdb;
m_adoConnection_mdb.CreateInstance("ADODB.Connection");_CommandPtr m_commandptr;
m_commandptr.CreateInstance(__uuidof(Command));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
这句话XP下没任何问题,2000下就出错,请各位大牛指教是怎么回事那
#import "c:\Program Files\Common Files\System\ADO\msado20.dll" \
no_namespace rename("EOF", "EndOfFile")
改成
#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \
no_namespace rename("EOF", "EndOfFile")
#import "c:\Program Files\Common Files\System\ADO\msado20.dll" \
no_namespace rename("EOF", "EndOfFile")
改成
#import "c:\Program Files\Common Files\System\ADO\msado15.dll" \
no_namespace rename("EOF", "EndOfFile")
2000和XP下两个都可以.