Jon,
This may be trivial but is the name of the function in your COM server actually MyForm_Init? If so, that is your problem. The function must be named Init.
This looks like VB syntax.
You can use the _Event syntax when you have other objects on the form.
>I've got an out-of-process automation server with one OLE public class. It's base class is form. I attempt to accept a parameter in the form's init event, but the parameter is always initialized as .F.
>
>Does this mean COM objects can't accept parameters??
>
>*In COM object:
>PROCEDURE MyForm_Init()
> LPARAMETERS tlNotify
> *do some stuff if tlNotify is .T.
>ENDPROC
>
>*In COM client:
>oDevice=CREATEOBJECT('MyProg.MyForm',.T.)
>
>Thanks,
>
>Jon
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao