Link to home
Start Free TrialLog in
Avatar of GENTP
GENTP

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GENTP
GENTP

ASKER

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?
>>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.