Click here to Skip to main content
15,887,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Printing in MFC Pin
hxhl955-Aug-07 9:56
hxhl955-Aug-07 9:56 
QuestionCreating Formatting Bar Pin
.NET- India 3-Aug-07 9:23
.NET- India 3-Aug-07 9:23 
QuestionRe: Creating Formatting Bar Pin
David Crow3-Aug-07 10:35
David Crow3-Aug-07 10:35 
AnswerRe: Creating Formatting Bar Pin
Hamid_RT3-Aug-07 18:44
Hamid_RT3-Aug-07 18:44 
QuestionCreate a wav file using existing wav files Pin
vikrant kpr3-Aug-07 7:56
vikrant kpr3-Aug-07 7:56 
AnswerRe: Create a wav file using existing wav files Pin
mid=57413-Aug-07 17:07
mid=57413-Aug-07 17:07 
AnswerRe: Create a wav file using existing wav files Pin
Karismatic3-Aug-07 20:38
Karismatic3-Aug-07 20:38 
QuestionAfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 5:59
Johpoke3-Aug-07 5:59 
This is allways something wich i have had trouble with, usualy i end up doing some ugly trick to make it work.. But this time i cant.. (well ive been spending around 3 days trying..) I need a thread which is connected to the main class of my MFC Dialog based application. I looked at Code Project:Using AfxBeginThread...[^] In which i end up createing a new static function that seems to work with some functions.. But when i tried calling the function i wanted it to run, it couldnt since it wasnt a static function.. So i tried making it a static function, but then i got loads of error messages...

So how would i go about creating and running a thread that is connected to the main class (like "CThreadDemoDlg::OnStart()" ) ?

The function doesnt need any params or other advanced features, maybe i should start it using a differnt function?

Or how should i go about this?

thanks!

PS: Im not really that good at the terminology for c++, or c++ programming itself, so nothing too hightech or advanced unless its a must do..



//Johannes

AnswerRe: AfxBeginThread() with a function in the main class Pin
led mike3-Aug-07 6:13
led mike3-Aug-07 6:13 
QuestionRe: AfxBeginThread() with a function in the main class Pin
David Crow3-Aug-07 6:15
David Crow3-Aug-07 6:15 
AnswerRe: AfxBeginThread() with a function in the main class [modified] Pin
Mark Salsbery3-Aug-07 6:20
Mark Salsbery3-Aug-07 6:20 
QuestionRe: AfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 6:39
Johpoke3-Aug-07 6:39 
AnswerRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 6:45
Mark Salsbery3-Aug-07 6:45 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 6:52
Johpoke3-Aug-07 6:52 
QuestionRe: AfxBeginThread() with a function in the main class Pin
David Crow3-Aug-07 6:54
David Crow3-Aug-07 6:54 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 6:59
Johpoke3-Aug-07 6:59 
QuestionRe: AfxBeginThread() with a function in the main class Pin
David Crow3-Aug-07 7:05
David Crow3-Aug-07 7:05 
AnswerRe: AfxBeginThread() with a function in the main class [Solved] Pin
Johpoke3-Aug-07 7:12
Johpoke3-Aug-07 7:12 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Ahmad Al-Maraghi4-Aug-07 1:50
Ahmad Al-Maraghi4-Aug-07 1:50 
AnswerRe: AfxBeginThread() with a function in the main class Pin
led mike3-Aug-07 7:08
led mike3-Aug-07 7:08 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 7:32
Mark Salsbery3-Aug-07 7:32 
GeneralRe: AfxBeginThread() with a function in the main class Pin
led mike3-Aug-07 7:43
led mike3-Aug-07 7:43 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Johpoke3-Aug-07 7:59
Johpoke3-Aug-07 7:59 
GeneralRe: AfxBeginThread() with a function in the main class Pin
led mike3-Aug-07 8:09
led mike3-Aug-07 8:09 
GeneralRe: AfxBeginThread() with a function in the main class Pin
Mark Salsbery3-Aug-07 8:14
Mark Salsbery3-Aug-07 8:14 

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.