Click here to Skip to main content
16,005,128 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Damned CALLBACK! Pin
S van Leent21-May-02 9:04
S van Leent21-May-02 9:04 
GeneralRe: Damned CALLBACK! Pin
Joaquín M López Muñoz21-May-02 8:42
Joaquín M López Muñoz21-May-02 8:42 
GeneralRe: Damned CALLBACK! Pin
S van Leent21-May-02 9:08
S van Leent21-May-02 9:08 
GeneralRe: Damned CALLBACK! Pin
Joaquín M López Muñoz21-May-02 9:18
Joaquín M López Muñoz21-May-02 9:18 
GeneralAnother thread question :) Pin
RobJones21-May-02 6:33
RobJones21-May-02 6:33 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 7:11
professionalPhilip Patrick21-May-02 7:11 
GeneralRe: Another thread question :) Pin
RobJones21-May-02 7:22
RobJones21-May-02 7:22 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 7:28
professionalPhilip Patrick21-May-02 7:28 
Omg... now I'm confused, lol. I saw that you have 2 functions with same name, one is static and one is not. But this is doesn't matter, you should not use pointer to CMainFrame in another thread to un functions, you should use PostMessage always to communicate between threads, then in the handler of that message (in CMainFrame) you can call any function of the frame.
So it goes like this:

CMainFrame (thread 1) -> [New thread] -> PostMessage to CMainFrame (thread 2) -> Handle message in CMainFrame (thread 1) -> call to run (thread 1)

You see? There is no direct access to CMainFrame functions from thread 2. Instead you are posting message, and it works like trigger, command to CMainFrame to start working with run

Philip Patrick
Web-site: www.stpworks.com
"Two beer or not two beer?" Shakesbeer

Need Web-based database administrator? You already have it!
GeneralRe: Another thread question :) Pin
RobJones21-May-02 7:43
RobJones21-May-02 7:43 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 8:24
professionalPhilip Patrick21-May-02 8:24 
GeneralRe: Another thread question :) Pin
Philip Patrick21-May-02 7:15
professionalPhilip Patrick21-May-02 7:15 
GeneralDraw Line Question Pin
Nick Parker21-May-02 6:13
protectorNick Parker21-May-02 6:13 
GeneralRe: Draw Line Question Pin
Stan the man21-May-02 6:20
Stan the man21-May-02 6:20 
QuestionAnd here goes my last guestion: export a function from an EXE? Pin
Rickard Andersson2021-May-02 6:08
Rickard Andersson2021-May-02 6:08 
AnswerRe: And here goes my last guestion: export a function from an EXE? Pin
Philip Patrick21-May-02 6:24
professionalPhilip Patrick21-May-02 6:24 
GeneralRe: And here goes my last guestion: export a function from an EXE? Pin
Rickard Andersson2021-May-02 7:04
Rickard Andersson2021-May-02 7:04 
GeneralRe: And here goes my last guestion: export a function from an EXE? Pin
Philip Patrick21-May-02 7:08
professionalPhilip Patrick21-May-02 7:08 
GeneralRe: And here goes my last guestion: export a function from an EXE? Pin
21-May-02 13:53
suss21-May-02 13:53 
QuestionIs there any data in transfer?? Pin
Rickard Andersson2021-May-02 6:01
Rickard Andersson2021-May-02 6:01 
AnswerRe: Is there any data in transfer?? Pin
Mike Nordell21-May-02 6:48
Mike Nordell21-May-02 6:48 
GeneralRe: Is there any data in transfer?? Pin
Rickard Andersson2021-May-02 7:09
Rickard Andersson2021-May-02 7:09 
GeneralRe: Is there any data in transfer?? Pin
Mike Nordell23-May-02 7:51
Mike Nordell23-May-02 7:51 
AnswerRe: Is there any data in transfer?? Pin
21-May-02 14:02
suss21-May-02 14:02 
QuestionBlock internet acces!? Pin
Rickard Andersson2021-May-02 5:58
Rickard Andersson2021-May-02 5:58 
AnswerRe: Block internet acces!? Pin
dazinith21-May-02 6:00
dazinith21-May-02 6:00 

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.