Information générale
Catégorie:
COM/DCOM et OLE Automation
Hi Larry,
Thanks for the reply, although it wasnt what I hoped to hear.
>No it doesn't. Add the Init method under the OleManager class definition.
According to the example under the DEFINE CLASS command in the help file, anything I add under the OleManager class definition is added to the OLE Container unless it is prefaced with the .Object clause, and I couldnt figure out how to create a procedure using the .Object clause.
>Most likely, the Manager.Init line of code will throw an error.
The Manager.Init line doesnt throw an error and in fact, executes when the object initializes. But is there a way to determine if the procedure is executing for the OLE Container or the ActiveX control?
Jon
>>Hi All,
>>
>>Here's the code:
>>DEFINE CLASS frmOLETest AS FORM
>> ADD OBJECT Manager AS OleManager
>> PROCEDURE Manager.INIT
>> *init code
>> ENDPROC
>>ENDDEFINE
>>
>>DEFINE CLASS OleManager AS OLECONTROL
>> OLECLASS = 'Manage.Manager.1'
>>ENDDEFINE
>>
>>My question is: The Manager.Init procedure created directly after the ADD OBJECT clause adds the procedure to the ActiveX control and not the OLE Container, right??
>>
>>TIA,
>>Jon
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