CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2001
    Posts
    17

    Relationship Between ActiveX Control and <OBJECT> tag

    There is probably a very simple answer to this but it has been eluding me all day. I have a fairly simple ActiveX control that I have written which works as it should when displayed in a browser.

    The problem I have is that I'm not sure what the HTML <PARAM NAME="" VALUE=""> tags within the <OBJECT> tag actually call within my control. I have added a property using class wizard and attempted to set it using the <PARAM> tag. However, the 'set' method for this property doesn't get called and the value doesn't seem to change. What am I missing? I am new to writing ActiveX controls so perhaps it's just me misunderstanding the fundamental way in which these controls function.

    Any help greatly appreciated.

  2. #2
    Join Date
    Feb 2005
    Location
    Pasadena, MD, USA
    Posts
    105

    Re: Relationship Between ActiveX Control and <OBJECT> tag

    Hi,

    Have you looked at MSDN?

    Jeff

  3. #3
    Join Date
    Aug 2001
    Posts
    17

    Re: Relationship Between ActiveX Control and <OBJECT> tag

    Thanks but I've searched and searched through MSDN but haven't found the answer I seek. The link you provided is specific to the HTML Help ActiveX control but still doesn't tell me what will be called within my control.

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: Relationship Between ActiveX Control and <OBJECT> tag

    Quote Originally Posted by rcharisse
    The problem I have is that I'm not sure what the HTML <PARAM NAME="" VALUE=""> tags within the <OBJECT> tag actually call within my control. I have added a property using class wizard and attempted to set it using the <PARAM> tag. However, the 'set' method for this property doesn't get called and the value doesn't seem to change. What am I missing?
    You have to implement IPersistPropertyBag interface in your coclass. See my explanations regarding MFC ActiveX here.
    Best regards,
    Igor

  5. #5
    Join Date
    Aug 2001
    Posts
    17

    Thumbs up Re: Relationship Between ActiveX Control and <OBJECT> tag

    Thanks for your help, that's all I needed to know

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured