Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a function in VFP dll
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Calling a function in VFP dll
Divers
Thread ID:
00856102
Message ID:
00856102
Vues:
71
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
Fil
Voir

Click here to load this message in the networking platform