-
March 19th, 2013, 04:47 PM
#1
error C3867: function call missing argument list; for a cli thread calling function
Hi all,
I searched the web for error: c3867 and most discussion were murky or obscure.
My code excerpt is:
#pragma once
#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 );
// Blah Blah Blah….
}
void PutUpfrmIO(void *param)
{
// Blah Blah Blah….
}
};
}
I get the generic error message:
error C3867: 'WordParsor::Form1::PutUpfrmIO': function call missing argument list; use '&WordParsor::Form1::PutUpfrmIO' to create a pointer to member; and the suggested fix just causes a new error.
One person suggested using the gcroot<> class, but I do not know how to declare the function or its arguments.
I do not know if it matters, but the calling function thread is within the parent class.
If you can specify a simple illustration, I would greatly appreciate that.
King
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
|