error c3867 function call missing argument list; for calling a Thread function
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: error c3867 function call missing argument list; for calling a Thread function

  1. #1
    Join Date
    Mar 2013
    Posts
    9

    Question 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

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,288

    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

  3. #3
    Join Date
    Mar 2013
    Posts
    9

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center