Hi all,
I have a read only edit box which i use as an output in my code
CString output
Now , I want to be able to start up a new thread and then write to output. I've set up a static function in my class
static UINT test_func(LPVOID pParam)
and function definition is
static UINT CTransmitterDlg::test_func(LPVOID pParam)
output+="in here\r\n";
return 1;
I call the test_func from another function by the following
AfxBeginThread(test_func,NULL);
However, I get compiler errors for all of this
error C2724: 'test_func' : 'static' should not be used on member functions defined at file scope
error C2597: illegal reference to data member 'CTransmitterDlg:utput' in a static member function
Does anyone know of a solution to this and/or some way that I can write to this output from a new thread. Thanks
Shav