Information générale
Catégorie:
Contrôles ActiveX en VFP
>>>>We are trying to use a third party activeX control the control is a dll file, it does not have to be registered with windows the file is just copied into the windows folder.
>>>>
>>>>I am having problems talking to the dll I have tried:
>>>>
>>>>ohhcom = CREATEOBJECT("HH32commDriver")
>>>>
>>>>and
>>>>
>>>>ohhcom = NEWOBJECT("HH32commDriver")
>>>>
>>>>trying this I receive an Class definition HH32commDriver is not found.
>>>>
>>>>I can open the dll in the class browser and see all the methods and events has anyone any ideas on how to talk to the control?
>>>>
>>>>Thanks
>>>>
>>>>John
>>>
>>>Did you try :
>>>ohhcom = CREATEOBJECT("DLLname.HH32commDriver")
>>>Cetin
>>
>>Hi Cetin
>>
>>HH32commDriver is the name of the dll.
>
>If it's a COM dll then (should be as it's an ActiveX dll):
>ohhcom = CREATEOBJECT("HH32commDriver.ClassName")
>
>else :
>declare retValType FunctionName in HH32commDriver paramlist
>Cetin
How do I find the class name?
John
Précédent
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