Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Calling a function in AfxBeginThread

$
0
0
I have the code:
Quote:

void go(CMFCApplication1Dlg * pdlg)
{
pdlg->listcontrol1.InsertItem(0, "Row1");
}
then i call it in thread
Code:

void CMFCApplication1Dlg::OnBnClickedButton3()
{
AfxBeginThread(go(this), NULL, THREAD_PRIORITY_NORMAL, 0, 0, NULL);
}

It doesn't work. Any idea how to make it work ? Thanks in advance!

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images