>I have defined a class as follows:
>
>define class myclass as custom
> procedure init(tcparm)
>
> set textmerge to d:\temp\testclass
> set textmerge on
> \<>
> \<>
> set textmerge off
> set textmerge to
> endproc
>enddefine
>
>
>If I compile this and then do:
>
>lo = CREATEOBJECT("MyClass", "Hello")
>
>the parameter gets passed just fine and is written to testclass.txt
>
>However, if I add OLEPUBLIC and then compile as a COMDLL, the parameter never gets passed. The value of tcParm is always .F. Is this part of the COM definition...that parameters can't be passed to the Init method?
You cannot send a parameter to server's INIT method but you can send it to any custom method.
Mark
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only