Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a simple DLL
Message
 
To
17/10/2001 01:37:35
Ashish Patel
Hindustan Petroleum
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00568925
Message ID:
00569411
Views:
23
In VB you need to set the class up as a 'reference'
Goto the project menu, and choose references,
A huge list will come up with all the registered COM/ActiveX objects on the system.
Choose the one you have created, Unless you change the name, should be something like yourprg Type Library.
Once you have ticked it, and hit OK, VB will be able to create instances of it, and IntelliSense will kick in to make it all that bit easier.
Code such as this will work


Dim o As New yourprg.Myclass
o.doMethod(withParameter)


HTH
- Chris
Previous
Reply
Map
View

Click here to load this message in the networking platform