Information générale
Catégorie:
COM/DCOM et OLE Automation
What is the problem? Do you save the parameters in properties in the Init() event of the class?
I don't like passing parameters at the creation of the COM. The syntax is complicated if you use NewObject() and can be impossible to do in another language like VB, AFAIK. If I need to pass some value to a COM before it start up, I will usually create a Start() method in the COM that will accept the parameters and actually initialize and start the COM.
HTH
>I have a simple COM that contains a timer, I can't seem to pass parameters to it with CREATEOBJECT().
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