Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error: Specified file cannot be found
Message
De
12/08/2013 08:26:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error: Specified file cannot be found
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580281
Message ID:
01580281
Vues:
66
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
Fil
Voir

Click here to load this message in the networking platform