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="..." CLASSID="...">
<PARAM NAME="..." VALUE="...">
... ...
</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("123456789"
document.all.ActiveX.Start("2002", "October"
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.