Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX in page HTML ?

Status
Not open for further replies.

j1m2p3

Programmer
Oct 8, 2002
4
MA
hello
I have to create ActiveX with Visual C++ which I want integrer in a page HTML.
I want to also to pass him from the Parameters with Javascript but I cannot how
can you help myself?
thank you.
 
What library you use - MFC or ATL.
There are two solutions:
1. you set parameters into OBJECT tag:
<OBJECT ID=&quot;...&quot; CLASSID=&quot;...&quot;>
<PARAM NAME=&quot;...&quot; VALUE=&quot;...&quot;>
... ...
</OBJECT>
For this you should add support of property bag persistence.

2. you set parameters into JScript function (OnLoad) with special methods of interface:
Create methods for your ActiveX interface ... use type of your parameters such as BSTR, VARIANT, etc...
Example JScript function:
function Start()
{
document.all.ActiveX.Init(&quot;123456789&quot;);
document.all.ActiveX.Start(&quot;2002&quot;, &quot;October&quot;);
}

For more information please specify your problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top