Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 26th, 2008, 01:28 PM
Registered User
Join Date: Feb 2008
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 :


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)
Old March 4th, 2008, 12:31 PM
Registered User
Join Date: Feb 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Answer to myself :

classwizard do not complete DoPropExchange for each persistent property.

I have added PX_String(pPX, L"src", m_src, L""); in this method and it works just like it should.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass value in PARAM tag to ActiveX control - Help! gregquinn Beginning VB 6 13 June 17th, 2007 08:03 AM
Help in activeX ahmedelmassry C# 1 March 7th, 2007 03:19 AM
Advantages /Disadvantages of ActiveX DLL & ActiveX priyank Beginning VB 6 6 February 19th, 2007 11:34 AM
ActiveX - Please Help cobweb VS.NET 2002/2003 0 July 18th, 2006 02:34 AM
ActiveX chwa Javascript 6 November 10th, 2003 12:15 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.