Click here to Skip to main content
15,923,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Additional info Pin
Kuniva21-Feb-02 5:52
Kuniva21-Feb-02 5:52 
GeneralRe: Additional info Pin
Joaquín M López Muñoz21-Feb-02 6:01
Joaquín M López Muñoz21-Feb-02 6:01 
GeneralRe: Additional info Pin
Kuniva21-Feb-02 6:05
Kuniva21-Feb-02 6:05 
GeneralRe: Additional info Pin
Joaquín M López Muñoz21-Feb-02 6:24
Joaquín M López Muñoz21-Feb-02 6:24 
GeneralRe: Additional info Pin
Kuniva21-Feb-02 6:38
Kuniva21-Feb-02 6:38 
GeneralRe: Additional info Pin
Joaquín M López Muñoz21-Feb-02 6:43
Joaquín M López Muñoz21-Feb-02 6:43 
GeneralRe: Additional info Pin
Kuniva21-Feb-02 8:14
Kuniva21-Feb-02 8:14 
GeneralRe: Additional info Pin
Joaquín M López Muñoz21-Feb-02 8:21
Joaquín M López Muñoz21-Feb-02 8:21 
The thread function has an LPVOID parameter that you can use to pass the object variables belong in. I usually make the thead proc a simple stub to the "real" function that does the job:
static DWORD WINAPI CMyClass:ThreadProcStub(LPVOID arg)
{
  CMyCLass * obj=static_cast<CMyCLass *>(arg);
  obj->Thread();
  return 0;
}
void CMyClass::Thread() //nonstatic
{
  // the stuff comes here
}
got the idea?

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: Additional info Pin
Kuniva21-Feb-02 9:44
Kuniva21-Feb-02 9:44 
GeneralRe: Additional info Pin
Joaquín M López Muñoz21-Feb-02 9:54
Joaquín M López Muñoz21-Feb-02 9:54 
Generaloops, nevermind Pin
Kuniva21-Feb-02 6:26
Kuniva21-Feb-02 6:26 
GeneralRe: Additional info Pin
Ernest Laurentin20-Feb-02 6:38
Ernest Laurentin20-Feb-02 6:38 
GeneralRe: fake HWND message loop in class Pin
Paul M Watt20-Feb-02 5:32
mentorPaul M Watt20-Feb-02 5:32 
GeneralCantaro sim -quabala ! Pin
Georg Haan20-Feb-02 4:32
Georg Haan20-Feb-02 4:32 
GeneralRe: PRAGMA PACK Pin
Ravi Bhavnani20-Feb-02 4:58
professionalRavi Bhavnani20-Feb-02 4:58 
General*** STUNNING NEW INFO *** Pin
Georg Haan20-Feb-02 5:06
Georg Haan20-Feb-02 5:06 
GeneralRe: *** STUNNING NEW INFO *** Pin
Ravi Bhavnani20-Feb-02 5:12
professionalRavi Bhavnani20-Feb-02 5:12 
Generalthanks -nt- Pin
Georg Haan20-Feb-02 5:23
Georg Haan20-Feb-02 5:23 
GeneralCannot debug with .Net visual studio. Pin
Stan Shannon20-Feb-02 4:21
Stan Shannon20-Feb-02 4:21 
GeneralCListView problems... Pin
funbag20-Feb-02 4:21
funbag20-Feb-02 4:21 
GeneralRe: CListView problems... Pin
Mazdak20-Feb-02 4:50
Mazdak20-Feb-02 4:50 
GeneralRe: CListView problems... Pin
funbag20-Feb-02 6:23
funbag20-Feb-02 6:23 
GeneralRe: CListView problems... Pin
Mazdak20-Feb-02 6:34
Mazdak20-Feb-02 6:34 
GeneralRe: CListView problems... Pin
funbag20-Feb-02 7:18
funbag20-Feb-02 7:18 
GeneralOnCmdMsg Question Pin
yellowine20-Feb-02 4:15
yellowine20-Feb-02 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.