Information générale
Catégorie:
COM/DCOM et OLE Automation
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement