Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Instantiate A VFP DLL In VB
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00515870
Message ID:
00515972
Views:
15
>>>>Is it possible to instantiate a VFP DLL in Visual Basic?
>>>>
>>>>How so?
>>>>
>>>>thanks
>>>
>>>Dim ox as Object
>>>
>>>ox = createobject("MyVFPProject.MyVFPClass")
>>>
>>>It's basically the same as you would using VFP and any COM object.
>>>
>>>HTH.
>>
>>Or
>>
>>Dim ox As myVFPProject.MyVFPClass
>>
>>if you want to take advantage of early binding.
>
>Provided you add a Project Reference to its Type Library.

Right, you will not get past the compiler if it is not in the project anyways.
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
Previous
Reply
Map
View

Click here to load this message in the networking platform