engineering directly converted from VC6.0, under VC6.0 compiler: no problem, the Windows 7 + VS2012 + ADO compile appear under the following tips: Fatal error C1083: cannot open type library file: "C: \ Program Files \ Common Files \ System \ ado \ MSJRO DLL" : No to the file or directory
When using ado statement and import the two libraries: # import "C: \ Program Files \ Common Files \ System \ ado \ msado15 DLL" rename (" EOF ", "EndOfFile") # import "C: \ Program Files \ Common Files \ System \ ado \ MSJRO DLL" no_namespace rename (" ReplicaTypeEnum ", "_ReplicaTypeEnum")
To view the directory C: \ Program Files \ Common Files \ System \ ado, is no MSJRO. DLL this file, wondering if Windows 7 under the lack of the file, and then directly under winxp copy a file, but compiled about MSJRO. TLH error warning: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 1> D: \ vc + + \ filetracer \ debug \ msjro TLH (196) : error C2146: syntax errors: lack of ";" (in front of the identifier "ConflictTables") 1> D: \ vc + + \ filetracer \ debug \ msjro TLH (196) : error C4430: lack of type specifier - is assumed to be int, note: c + + does not support default int 1> D: \ vc + + \ filetracer \ debug \ msjro TLH (224) : error C2146: syntax errors: lack of ";" (in front of the identifier "GetConflictTables") 1> D: \ vc + + \ filetracer \ debug \ msjro TLH (224) : error C4430: lack of type specifier - is assumed to be int, note: c + + does not support default int 1> D: \ vc + + \ filetracer \ debug \ msjro TLH (224) : warning C4183: "GetConflictTables" : the lack of a return type; Assumed to return "int" member function 1> D: \ vc + + \ filetracer \ debug \ msjro tli (111) : error C2143: syntax errors: lack of ";" (in front of the "IReplica: : GetConflictTables") 1> D: \ vc + + \ filetracer \ debug \ msjro tli (111) : error C2433: "_RecordsetPtr" : not allowed to use in data statement "inline" 1> D: \ vc + + \ filetracer \ debug \ msjro tli (111) : error C4430: lack of type specifier - is assumed to be int, note: c + + does not support default int 1> D: \ vc + + \ filetracer \ debug \ msjro tli (115) : error C2064: item not calculated as function of two parameters -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Can you tell me whether you in such an environment also encountered such a problem, is how to solve? Please grant instruction!