Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB function an VFP
Message
 
 
À
08/11/2000 15:48:45
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00439376
Message ID:
00439386
Vues:
34
>I have a VB function (comes from Dll) which requeres an object as a parameter. Is there a way to use it in VFP? I can create that object but how to declare DLL?
>Thanks Mark

Since VB can only create ActiveX DLLs, you don't need to declare the DLL. You need to use Createobject() and then pass your object to the function.

myobj = someobject
oVB = createobject("myVBProject.myVBClass")
oVB.SomeFunction(myobj)

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform