Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Using Com Interfaces
Hi, I created a COM component in VB as an ActiveX DLL. It has an Interface Class called IClass, which Public Not Creatable with function declarations as Public; it has also a class that implements that Interface. The CClass Class is Public MultiUse and the functions it implements are Private.
I had no problems calling that dll from a VB Client. The code I used to call it is:
Dim retval As Boolean
Dim objI As DLLName.IClass
Dim objC As DLLName.CClass
Set objC = New DLLName.CClass
Set objI = objC
retval = objI.FunctionName("Parameter1", "Parameter2")
I have trouble to call this dll From FoxPro, since we do not have the ability to declare variables of a certain type. (In VB I can declare objI of type IClass).
I can create an object of CClass using the code:
objC = CreateObject("DLLName.CClass") but I cannot call the functions because they are Private in the CClass.
I cannot create an object of IClass (which has public functions), because it is Public Not Creatable.
Any Help will be greatly appreciated
Ari Bano
Suivant
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