|
-
December 21st, 2009, 11:45 AM
#1
Code Using Multithreading
This is my first program in VC++.net. Am developing a GUI appln tool for receiving datas from a Processor based PCBs. Here i have to use Multithreading. I've no previous experience on using Thread. From the help of MSDN, I've tried to make it. The code layout is as follows...
<code>
void OnBnClickedReceive()
{
DWORD threadId;
int value = 10;
CreateThread(NULL, 0, File_edit, &value, 0, &threadId
}
DWORD WINAPI File_edit(LPVOID lp)
{
// processing....
}
</code>
But the Error messages came as
'CNewSerialPrintDlg::FileData_edit': function call missing argument list; use '&CNewSerialPrintDlg::FileData_edit' to create a pointer to member'
Not getting any ideas to fix it.. Plz help n give me details for a thread development.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|