-
March 19th, 2013, 11:42 AM
#1
error c3867 function call missing argument list; for calling a Thread function
Hi All,
I searched the web for error: C3867... and the discussions where murky or obscure.
My code excerpt is:
#pragma once
#include <windows.h>
#include <stdlib.h>
#include <process.h>
void PutUpfrmIO(void *);
namespace WordParsor {
using namespace System;
public ref class Form1 : public System::Windows::Forms::Form
{
// Blah Blah Blah...
System::Void Test_Click(System::Object^ sender, System::EventArgs^ e)
{
_beginthread( PutUpfrmIO, 0, NULL );
}
void PutUpfrmIO(void *param)
{
// Blah Blah Blah...
}
}
}
I get the generic message:
error C3867: 'WordParsor::Form1::PutUpfrmIO': function call missing argument list; use '&WordParsor::Form1::PutUpfrmIO' to create a pointer to member c:\users\king\c++\wordparsor\wordparsor\Form1.h... and the suggestion fix generate another error.
One person suggested the gcroot<> object wrapper... but I do not know how to modify/declair the function or its argument type.
Any simple suggestions?
King
-
March 19th, 2013, 03:18 PM
#2
Re: error c3867 function call missing argument list; for calling a Thread function
Post this question into appropriate forum, like Managed C++/CLI or some .Net one.
The Visual C++ Programming has nothing to do with the code you posted.
Victor Nijegorodov
-
March 19th, 2013, 04:50 PM
#3
Re: error c3867 function call missing argument list; for calling a Thread function
Thanks VictorN,
I will. I did not realize codeguru had one.
King
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
|