Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 26th, 2008, 01:28 PM
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 :


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
  #2 (permalink)  
Old March 4th, 2008, 12:31 PM
Registered User
Join Date: Feb 2008
Location: , , .
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.

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:35 PM.

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