I developing an ActiveX component that will run as an object in a ordinary
HTML page. I need to send a parmetervalue to my ActiveX component when it is
created and thought I could use an object parameter from my HTML page but I
can't make it work.
The object tag that starts my Active X component looks like:
<p class=MsoNormal><object
classid="CLSID:F6D421FD-069A-4B7F-BA92-F4A3E664DB59"
id=XTest2Form1 width=333 height=255>
<param name=Caption value="My Caption Name">
<param name=DefFile value="C:\definition.def">
</object></p>
Is there a simple way to be able to get and use these object parameters in
my component?
Thanks
Niklas Larsson
> I developing an ActiveX component that will run as an object
> in a ordinary HTML page. I need to send a parmetervalue to
> my ActiveX component when it is created and thought I could
> use an object parameter from my HTML page but I can't make
> it work.
Your ActiveX component needs to implement the IPersistPropertyBag interface
in order to do that:
IPersistPropertyBag
http://msdn.microsoft.com/en-us/library/aa768205(VS.85).aspx
Gambit
I googeled IPersistPropertyBag and find an article how to do this i Delphi:
http://wall.riscom.net/books/delphi/del_tis/TI3300.html
/Niklas
"Remy Lebeau (TeamB)" <no....@no.spam.com> wrote in message
news:48650fb4$3...@newsgroups.borland.com...