Click here to Skip to main content
15,886,026 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Accessing files which are in JAR Pin
David Crow9-Sep-09 3:16
David Crow9-Sep-09 3:16 
QuestionRe: Accessing files which are in JAR Pin
CPallini9-Sep-09 3:20
mveCPallini9-Sep-09 3:20 
AnswerRe: Accessing files which are in JAR Pin
Michael Schubert9-Sep-09 21:20
Michael Schubert9-Sep-09 21:20 
QuestionVC++ Basic Threading - help Pin
GC1049-Sep-09 1:31
GC1049-Sep-09 1:31 
AnswerRe: VC++ Basic Threading - help Pin
CPallini9-Sep-09 1:59
mveCPallini9-Sep-09 1:59 
AnswerRe: VC++ Basic Threading - help Pin
Selvam R9-Sep-09 2:11
professionalSelvam R9-Sep-09 2:11 
AnswerRe: VC++ Basic Threading - help [Updated] Pin
Nuri Ismail9-Sep-09 2:28
Nuri Ismail9-Sep-09 2:28 
AnswerRe: VC++ Basic Threading - help Pin
GC1049-Sep-09 4:12
GC1049-Sep-09 4:12 
Info gratefully received, I have gone away and think I now have a better understanding of what a 'static member function' is all about. However I'm struggling with the example given on the link given. see below:

static UINT run(LPVOID p);
void run();
volatile BOOL running;
To start a thread, your handler does

void CMyView::doInvert()
    {
     running = TRUE;
     AfxBeginThread(run, this); // why is a 'this' pointer passed as the pParam?
                                // run is refering to member function 'UINT CMyView::run(LPVOID p)'?
    }
 
UINT CMyView::run(LPVOID p)
    {
     CMyView * me = (CMyView *)p;  //why is 'p' cast from something that already seems to be 
                                   //a CMyView pointer already?
     me -> run();
     return 0;
    }
 
void CMyView::run()  //run is an overloaded function?
   {
     for(int x=y = 0; running && y < image.height; y++)
          for(int x = 0; running && x < image.width; x++)
              changePixel(x, y);
    running = FALSE;
   }

GeneralRe: VC++ Basic Threading - help Pin
Cedric Moonen9-Sep-09 4:20
Cedric Moonen9-Sep-09 4:20 
AnswerRe: VC++ Basic Threading - help Pin
Rajesh R Subramanian9-Sep-09 6:07
professionalRajesh R Subramanian9-Sep-09 6:07 
GeneralRe: VC++ Basic Threading - help Pin
GC10410-Sep-09 23:01
GC10410-Sep-09 23:01 
QuestionHow do I rename Outlook Pst newly created folder 'Personal Folders' programmatically ? Pin
SherTeks9-Sep-09 0:54
SherTeks9-Sep-09 0:54 
AnswerRe: How do I rename Outlook Pst newly created folder 'Personal Folders' programmatically ? Pin
Selvam R9-Sep-09 1:22
professionalSelvam R9-Sep-09 1:22 
AnswerRe: How do I rename Outlook Pst newly created folder 'Personal Folders' programmatically ? Pin
Adam Roderick J9-Sep-09 1:31
Adam Roderick J9-Sep-09 1:31 
Questionhow to create conference with iaxclient.dll? Pin
nitu dhanurved9-Sep-09 0:48
nitu dhanurved9-Sep-09 0:48 
AnswerRe: how to create conference with iaxclient.dll? Pin
Adam Roderick J9-Sep-09 2:09
Adam Roderick J9-Sep-09 2:09 
AnswerRe: how to create conference with iaxclient.dll? Pin
Richard MacCutchan9-Sep-09 3:07
mveRichard MacCutchan9-Sep-09 3:07 
QuestionCVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Vetukuri Raju8-Sep-09 23:40
Vetukuri Raju8-Sep-09 23:40 
AnswerRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Adam Roderick J9-Sep-09 0:02
Adam Roderick J9-Sep-09 0:02 
GeneralRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Vetukuri Raju9-Sep-09 0:20
Vetukuri Raju9-Sep-09 0:20 
QuestionRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Adam Roderick J9-Sep-09 0:32
Adam Roderick J9-Sep-09 0:32 
AnswerRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Vetukuri Raju9-Sep-09 0:38
Vetukuri Raju9-Sep-09 0:38 
QuestionRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Adam Roderick J9-Sep-09 0:50
Adam Roderick J9-Sep-09 0:50 
GeneralRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Vetukuri Raju9-Sep-09 1:00
Vetukuri Raju9-Sep-09 1:00 
GeneralRe: CVTRES : fatal error CVT1100: duplicate resource. type:DIALOG, name:PRINTSTATUS, language:0x0409 Pin
Adam Roderick J9-Sep-09 1:16
Adam Roderick J9-Sep-09 1:16 

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.