Главная страница | назад





Article #19626: ActiveX reading paramters from HTML

 Question and Answer Database
FAQ: FAQ4626C — ActiveX reading paramters from HTML
Category: ActiveX/OLE/COM/ActiveForm
Platform: All-32Bit
Product: C++Builder4.x,
Question:
How do I do to get the ActiveX to read this parameter?

Can i have a simple form with an input type ="text" and when i write and
click submit the value will be sent to the activeX Control
how do I do that?
Answer:
The  syntax requires that a Server support
IPersistPropertyBag. ATL, the underlying library used by C++Builder for
ActiveX, has IPersistPropertyBag support. However, it's driven off a
property map table that needs to be maintained manually. (NOTE: You have to
maintain that property by hand with native ATL. Attached is a link where you
can get more information:
http://msdn.microsoft.com/library/periodic/period97/D1/vc0397.htm . ).
For C++Builder, we too had to refrain from maintaining the property map because
we reroute the persistence mechanism to VCL's native persistence for
ActiveForm and ActiveXControl.
This can be an error-prone [manual] process if you're still designing the
methods/properties of your control: You'll have to keep the PROPERTY_MAP
table in sync. with the properties of your interface. However, once these
are set, you can update the table and leave it at that.
6/16/99 2:55:48 PM

Last Modified: 01-SEP-99