Information générale
Titre:
Calling a function in VFP dll
Hi All,
I am pretty new to C#. What I am trying to do is call a function in a dll(Created through VFP 7.0) from C# and show the result on my form.
The statements I was using in FoxPro is as follows
oMyObject = CreateObject("MyDLL.MyClass")
lcReturn = oMyObject.WhoAMI()
&& Will return the version number and description of the DLL
I tried the following statemetns in C#
private MyDLL.MyClass oMyObject
lcReturn = oMyObject.WhoAMI()
While building I got the following error message
Cannot implicitly convert type 'object' to 'string'
Any idea. Thanks in advance
Bijith
Suivant
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