问题
Im trying to run FoxPro in Windows 2012,
I have registered the dll using regsvr32
When i try to run the app using the dll, i got this
Error: Creating an instance of the COM component with CLSID {F6C4F46E-58A4-4774-802F-1CF9E64376B0} from the IClassFactory failed due to the following error: 80004005. Trace: at Lib.FoxProWrapper..ctor(String ODBC, String Acct, String Pswd) at App.Processor..ctor(String SrvType, String ServiceName) at App.App.startApp()
回答1:
I assume here you are talking about a COM DLL created with Visual FoxPro and by the looks of it you are trying to instantiate it in C#.
Make sure you have the runtimes properly installed. You can download them here.
来源:https://stackoverflow.com/questions/30112869/creating-com-error-80004005