Thread: Calling a Thread with a Function Pointer.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    4
    Well I should restate that my intended use of that class will be a singleton, I will not be creating an instance of that class but only calling its member functions with the scope operator. I still need to declare it as a static class and make sure that it cannot be constructed.

    I have attached a Image to show in much simpilar terms as to what I am trying to do.

    The MUD book I am following did not have to cast any type, as well my C++ Primer book gave me some advice.

    !!Advice: Avoid Casts!!

    I would like either two things as an anwser,

    A: If someone could attempt to solve and compile my code to get it to work.

    B: Show or create me an example of a Function or a Member Function that calls CreateThread() and that function should pass on the two parameters that CreateThread needs to create a thread, A pointer to the function thread and its parameter.
    Last edited by ScrollMaster; 06-09-2006 at 10:18 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  3. What is a virtual function pointer?
    By ting in forum C++ Programming
    Replies: 4
    Last Post: 03-05-2008, 02:36 AM
  4. calling a function with a pointer to a struct
    By bomberto in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2006, 04:21 AM
  5. Direct3D problem
    By cboard_member in forum Game Programming
    Replies: 10
    Last Post: 04-09-2006, 03:36 AM