Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error: Specified file cannot be found
Versions des environnements
Network:
Windows 2008 Server
Hi All,
We have an existing VFP application and we are writing a new C# web front end to compliment it. To complicate matters our company owns a C++ library containing all of the calculations we use in our VFP application and we have be requested to reuse the C++ rather than convert the VFP code to C#. We were able to write a managed DLL wrapper for the C++ code (LIB file) which allows us to utilize it in C#. As victims of our own success we have now been tasked with turning our C# DLL into a COM library and replacing out our VFP code so that both applications have the same code base.
I have made the C# DLL COM visible, generated the TBL file and run REGASM. When I issue the CREATEOBJECT() in VFP I receive an error that the specifed file cannot be found. I then added the COM DLL to the GAC and still receive the error message.
I suspect that the issue is the related files. In the C# environment I can drop the C# DLL, C++ DLL and original C++ lib files all into the BIN folder and it is happy, however in the VFP environment I suspect that the issue is that it is finding the C# DLL and then cannot locate the reference libraries. As they stand these files (in particular the LIB) cannot be registered and so I may be at an impass, but I wanted to see if anyone else had resolved this issue previously or had any ideas.
Thanks in advance for your assistance,
Ian Plunkett
Senior Developer
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement