TeeListControl SetChart

TeeChart for ActiveX, COM and ASP
Post Reply
LAL
Newbie
Newbie
Posts: 40
Joined: Fri Jun 20, 2008 12:00 am

TeeListControl SetChart

Post by LAL » Mon Mar 09, 2009 12:01 am

In MFC/C++ with AX v8, how do I get the LPDISPATCH from my TChart member variable (CTChart m_Chart) to pass to the CTeeListBox SetChart function?

LAL
Newbie
Newbie
Posts: 40
Joined: Fri Jun 20, 2008 12:00 am

Is this right?

Post by LAL » Mon Mar 09, 2009 12:13 am

Is this right?

Code: Select all

	LPUNKNOWN pUnk = m_Chart.GetControlUnknown();
	LPDISPATCH pDisp = NULL;
	pUnk->QueryInterface(IID_IDispatch, (void**) &pDisp);

LAL
Newbie
Newbie
Posts: 40
Joined: Fri Jun 20, 2008 12:00 am

It worked!

Post by LAL » Mon Mar 09, 2009 12:46 am

So I guess it must be right!

Thanks anyway!

:)

Post Reply