• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

How do you read the <param> tags in an ATL ActiveX control?

I'm making an ATL ActiveX control and I want to read in the param tags which are nested inside the object tag but I can't figure out how to do it.  Does anyone know where I can find a sample or documentation on how to do this?
  • 2
1 Solution
The PARAM names must correspond to properties your control exposes, then they'll be set automativally by the browser. See e.g. http://www.codeproject.com/com/firingeventsamongactivex.asp ("Firing Events among ActiveX controls on IE") where this is demonstrated with a 'PenColor'.
GENTPAuthor Commented:
hm, I can't get it to work with my implementation.  Well work properly that is.  I've managed to get that "This may be unsafe are you sure?" dialog to popup but I can't figure out how to get the damn thing to read the value.

I have this defined at the top of my class

public IPersistPropertyBagImpl<Cax3DPlugin>

And then

   PROP_DATA_ENTRY("_cx", m_sizeExtent.cx, VT_UI4)
   PROP_DATA_ENTRY("_cy", m_sizeExtent.cy, VT_UI4)
   PROP_ENTRY("Mission", 1, CLSID_NULL)

(Mission being the text value that I'm trying to read) and thats about as far as I have managed to get.  If I make get_Mission and put_Mission functions they never seem to get called.  Got any ideas?
>>If I make get_Mission and put_Mission functions they never seem to get called.  Got any ideas?

They will be generated by teh framework, just like in the article I linked.

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now