ATL ActiveX - Using in HTML pages using <PARAM> Tag
Posted on 1999-11-22
I'm getting desperate here. I'm writing an ATL component (Thanks to a few previous questions asked here...). Now it is working great, but I want to insert it into Web pages. Using HTML PARAM tag. (Using VBScripts to load the component and use functions works great, but I don't want to use it because I want a generic component that will work under netscape also!).
anyway. Using PARAM I tried two ways. One is to do this
<OBJECT ID="MYCONTROL" WIDTH=470 HEIGHT=62
<PARAM NAME="Param1" VALUE="23">
<PARAM NAME="Param2" VALUE="26">
and the other way is to use
<PARAM NAME="Line0001" VALUE="SetSomething(0,1,0)">
which didn't work either.
I was then told I need to implement PropertyBagsImpl. I did it, but that didn't work again. THEN I was told I need to override the load function of the PropertyBagsImpl template.
But this is where I'm stuck. How do I do that? the MSDN states the header to be
HRESULT Read( LPCOLESTR pszPropName, VARIANT* pVar, IErrorLog* pErrorLog);
but if I overload it I get an error saying that this declaration differs from the original virtual function by return type or calling convention (or something like that).
What Can I do??? How do I use that LOAD thing, anyway? What are those pointers in the function? Please help...