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?
LVL 5
GENTPAsked:
Who is Participating?
 
jkrConnect With a Mentor Commented:
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'.
0
 
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

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

(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?
0
 
jkrCommented:
>>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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.