pass pointer to a thread function ?
From: mandatory (okllsam_at_nptklooohs.ru)
Date: 03/13/05
- Next message: Gianni Mariani: "Re: enum { A,B, }"
- Previous message: Jerry Coffin: "Re: how to make object sortable for use in STL containers"
- Next in thread: Victor Bazarov: "Re: pass pointer to a thread function ?"
- Reply: Victor Bazarov: "Re: pass pointer to a thread function ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 13 Mar 2005 23:48:38 +0100
hi,
i would like to pass a pointer to a thread function to a class.
The function in my code that i would like to get the address of, and pass it
to a class function is:
DWORD ServiceExecution(LPDWORD param)
And i would like to somehow send the address to a class function, similar to
this:
MyClass.ServiceExe (ServiceExecution):
Can this be done ? i have abit troubles getting it working - i remember that
i in the early years in normal C could do this fairly easy - but it has
really slipped my mind how the syntax is, and if its possible at all...
hope you can help !
- Next message: Gianni Mariani: "Re: enum { A,B, }"
- Previous message: Jerry Coffin: "Re: how to make object sortable for use in STL containers"
- Next in thread: Victor Bazarov: "Re: pass pointer to a thread function ?"
- Reply: Victor Bazarov: "Re: pass pointer to a thread function ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|