Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
USING VFP DLL IN VB
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00471556
Message ID:
00471588
Vues:
34
>Hi All
>I have made a single threaded Com server Dll with a Class
>If I use it in VFP it Works like a charms
>But my VB fellow can't use it
>How can he use it in VB.
>
>My dll name is comvb.dll and have a methode name meval in it
>I use it like this
>otest = CreateObject('comvb.vbeval')
>? otest.meval('1<2') && return .t.
>I have made this dll for the vb programmer, He can use the Eval() function in it
>
>Thanks for the tips
>
>Benoit

Benoit, did you (or him) add your VFP COM object type library to VB project?

In order to use VFP COM (or any other COM)in VB the corresponding type library should be added to the project through Project/References menu option (find it in the list and put the checkmark next to it) so it will be available in your VB project.

Then you can instantiate it for example from VB form something like this:

Option Explicit
Public oTest As Object

Private Sub Form_Initialize()
Set oTest = New vbeval
End Sub
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform