Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get object parameter value from ActiveX component

36 views
Skip to first unread message

Niklas Larsson

unread,
Jun 27, 2008, 5:58:54 AM6/27/08
to
Hi!

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


Remy Lebeau (TeamB)

unread,
Jun 27, 2008, 12:03:51 PM6/27/08
to

"Niklas Larsson" <n...@virtualcarisma.com> wrote in message
news:4864b9eb$1...@newsgroups.borland.com...

> 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


Niklas Larsson

unread,
Jun 28, 2008, 12:23:42 PM6/28/08
to
Thanks 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...

0 new messages