(under VS 2005)
Hello
I have found this topic which quite match my issue with activeX, but for
VB :
http://p2p.wrox.com/topic.asp?TOPIC_...=activeX,PARAM
I am building an activeX version of my VRML Player app.
I would like to embed the activeX in a HTML page, using object tag for the object, and <PARAM name="src" value="mycontent.wrl"> as url information.
I do not manage to get the value inside the activeX !
I declared a property on the control lib, with class wizard.
It added a m_src member, onsrcChanged method and an IDL entry and a line in dispatch map :
BEGIN_DISPATCH_MAP(CmgfActiveXCtrl, COleControl)
DISP_FUNCTION_ID(CmgfActiveXCtrl, "AboutBox", DISPID_ABOUTBOX, AboutBox, VT_EMPTY, VTS_NONE)
DISP_PROPERTY_NOTIFY_ID(CmgfActiveXCtrl, "src", dispidsrc, m_src, OnsrcChanged, VT_BSTR)
...
When i look at the m_src value in OnCreate, it does not hold "myContent.wrl" but it is empty.
I have tried to set it via html body "onload" but this does not work either.
Do you have any tip concerning activeX and PARAM usage in activeX control ? (I also tried with a less used parameter name testVar, without success)