The control was created by MFC Active X control wizard, setting the
"invisible at run time" and "windowless activation" checks.
The control code is very simple: it has only a property (short MyValue),
three methods
(void increment(), void decrement() and short obtainvalue()) and one
event fired when MyValue becomes 10.
It works correctly in VC++, VBasic and Excel!
Under Delphi 3.0, calling any of the methods raises an exception class
EOleSysError with message "Catastrophic failure" and the process
stops.
This doesn't happen if the control is generated "Visible at run time".
How can we write ActiveX controls, possibly with Delphi 3, that are not
visible at run time and that are dynamically instantiable (like UDP
control in Delphi component palette) ?
Thanks.
If anyone knows why, I'd like to know.
--
Thanks,
Butch Raines
Roberto Sarti <rarti_...@mail.asianet.it> wrote in article
<3469CE...@mail.asianet.it>...
!:-)
We 're now trying to do the same using only Delphi...
There's still some problem with the visibility at design time...
I'll start a new news thread if the problem persists.
Thanks to all.