Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VB function an VFP
Message
 
 
To
08/11/2000 15:48:45
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00439376
Message ID:
00439386
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform