By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,194 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,194 IT Pros & Developers. It's quick & easy.

ATL/COM MFC API problem

P: n/a
Hi, I am new to this group and looking for some help.

I am writing an MFC app that is having issues outputting data to a
list box on the MFC dialog.

Currently, you start the program, it will run CTradeDlg::InitDialog();
where most of the program is taken care of. It will do API calls to a
data provider, which provide historical data, push it into a list, but
when I have to do the COM/ATL interface to retrieve realtime data I
had to declare a class within the main cpp file called

class CMyFrameSink : public CComObjectRoot, public IMafFrameEvents

the problem is this....

if I try to output data fromt CMyFrameSink::, it will not output it
even if I declare a CTradeDlg object within that class, and have an
output function

void CTradeDlg::OutputToListBox()
{

nRow=((CListBox*)GetDlgItem(IDC_LIST1))->AddString("test");

}

just to test if it will acutally output, but no success.
Also, after I declare the CTradeDlg object and do a "CTradeDlgObj." a
list box will come up with all class members and methods, so I really
don't know what the problem is.
I am using VC6 and does anyone have any guidance? It would be very
much appreciated.

Michael Lyszczek
Mi**@flytrading.com
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
comp.os.ms-windows.programmer.win32 ?
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.