Hi, I'm also having same problem!
CComPtr <IDispatch> pIDisp; pIDisp = m_ctlSVG.getSVGDocument (); How to cast this pIDisp pointer to refer to some SVG interface, so that I'll be able to call its methods. Also HOW TO CALL getSVGDocument, IF I'M NOT USING SVG AS ACTIVEX CONTROL, BUT ACCESSING ITS OBJECT CREATED BY IE IN VC++. Regards, Ijaz Rashid. --- In [email protected], "Alexander Kabanov" <[EMAIL PROTECTED]> wrote: > Greetings! > > I've just started with SVG, and the only thing I made - is an > extremly simple SVG viewer using Adobe SVG Viewer 3.0 ActiveX control. > But now I need to get more control over the SVG drawing at runtime > and I'm stack... > > Currently I have: > 1. AcviteX control at my dialog page. > 2. CSVGControl class that allows me to select SVG. > 3. and I can get the IDispatch interface of the SVG document by > getSVGDocument function. > > But the problem is that I don't know how to operate with it. > I also have the Delphi sample with the following code: > > SVGCtl1: TSVGCtl; > SVGDoc: OleVariant ; > ... > SVGCtl1:=TSVGCtl.Create(self); > ... > SVGDoc:=SVGCtl1.getSVGDocument; > ... > SVGDoc.getElementById('feeder_dicht').getStyle.setProperty > ('visibility','hidden'); > > but I can't make something like the last call in my Visual C++... > I also found that I can do the following: > CComVariant svgDoc=svgCtrl.getSvgDocument(); > > Brrr, but what's next? > > Actually I need to have a feedback from the SVG drawing, and external > ccontrol over the drawing. > > Thanks in advance for any help and samples! > > Alexander. ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12huf249p/M=362329.6886308.7839368.1510227/D=groups/S=1706030389:TM/Y=YAHOO/EXP=1124901654/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992 ">Fair play? Video games influencing politics. Click and talk back!</a>.</font> --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

