Page 1 of 1

TeeListControl SetChart

Posted: Mon Mar 09, 2009 12:01 am
by 15049432
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?

Is this right?

Posted: Mon Mar 09, 2009 12:13 am
by 15049432
Is this right?

Code: Select all

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

It worked!

Posted: Mon Mar 09, 2009 12:46 am
by 15049432
So I guess it must be right!

Thanks anyway!

:)