View Single Post
  #1 (permalink)  
Old February 26th, 2008, 01:28 PM
smaraux smaraux is offline
Registered User
Join Date: Feb 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX : getting PARAM value in activeX src

(under VS 2005)


I have found this topic which quite match my issue with activeX, but for VB :,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_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)
Reply With Quote