Click here to Skip to main content
15,911,360 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPrinting in MFC [modified] Pin
hxhl953-Aug-07 12:30
hxhl953-Aug-07 12:30 
AnswerRe: Printing in MFC Pin
bob169723-Aug-07 16:02
bob169723-Aug-07 16:02 
QuestionRe: Printing in MFC Pin
hxhl953-Aug-07 19:32
hxhl953-Aug-07 19:32 
AnswerRe: Printing in MFC Pin
bob169724-Aug-07 3:41
bob169724-Aug-07 3:41 
GeneralRe: Printing in MFC Pin
hxhl954-Aug-07 6:36
hxhl954-Aug-07 6:36 
AnswerRe: Printing in MFC Pin
bob169723-Aug-07 16:25
bob169723-Aug-07 16:25 
AnswerRe: Printing in MFC Pin
hxhl954-Aug-07 6:42
hxhl954-Aug-07 6:42 
GeneralRe: Printing in MFC Pin
bob169724-Aug-07 8:38
bob169724-Aug-07 8:38 
GeneralRe: Printing in MFC Pin
Bram van Kampen5-Aug-07 3:11
Bram van Kampen5-Aug-07 3:11 
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 

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.