Click here to Skip to main content
15,912,493 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: APP Won't launch in Release settings Pin
Mike2418-Apr-03 7:31
Mike2418-Apr-03 7:31 
GeneralRe: APP Won't launch in Release settings Pin
Maximilien18-Apr-03 6:39
Maximilien18-Apr-03 6:39 
QuestionHow to Exit a Program Pin
gmlnd18-Apr-03 5:46
gmlnd18-Apr-03 5:46 
AnswerRe: How to Exit a Program Pin
Chris Losinger18-Apr-03 6:19
professionalChris Losinger18-Apr-03 6:19 
GeneralRe: How to Exit a Program Pin
Mike2418-Apr-03 6:21
Mike2418-Apr-03 6:21 
GeneralRe: How to Exit a Program Pin
gmlnd18-Apr-03 6:33
gmlnd18-Apr-03 6:33 
Generalstrange question Pin
will138318-Apr-03 5:43
will138318-Apr-03 5:43 
GeneralRe: strange question Pin
Erik Juhl18-Apr-03 6:48
Erik Juhl18-Apr-03 6:48 
I think you need to use the MFC thread functions within MFC, AfxBeginThread(). Unless theApp.RunDialog has a function signature of a worker thread, you might want to take a different approach. Define a worker thread with a signature like UINT MyControllingFunction( LPVOID pParam ); and use that as the first parameter to AfxBeginThread. Pass theApp as a second parameter and from inside your worker thread, call RunDialog. Here's a sample from MSDN using a CMyObject instead of theApp...

UINT MyThreadProc( LPVOID pParam )
{
CMyObject* pObject = (CMyObject*)pParam;

if (pObject == NULL ||
!pObject->IsKindOf(RUNTIME_CLASS(CMyObject)))
return 1; // if pObject is not valid

// do something with 'pObject'

return 0; // thread completed successfully
}

// inside a different function in the program
.
.
.
pNewObject = new CMyObject;
AfxBeginThread(MyThreadProc, pNewObject);
.
.
.



QuestionWMI - How do I use it ? Pin
Sendel18-Apr-03 4:39
Sendel18-Apr-03 4:39 
AnswerRe: WMI - How do I use it ? Pin
dan o16-Jul-03 3:10
dan o16-Jul-03 3:10 
GeneralRe: WMI - How do I use it ? Pin
Sendel16-Jul-03 5:42
Sendel16-Jul-03 5:42 
GeneralQuestion about Active X Pin
dvlpt18-Apr-03 3:49
dvlpt18-Apr-03 3:49 
GeneralSetFocus Problem Pin
Mathias S.18-Apr-03 2:54
Mathias S.18-Apr-03 2:54 
GeneralRe: SetFocus Problem Pin
Bartosz Bien18-Apr-03 3:11
Bartosz Bien18-Apr-03 3:11 
GeneralMove modeless dialog over a control Pin
Cedric Moonen18-Apr-03 2:24
Cedric Moonen18-Apr-03 2:24 
GeneralOk solved ! :) Pin
Cedric Moonen18-Apr-03 2:29
Cedric Moonen18-Apr-03 2:29 
QuestionAre there some reference about how to use auto_ptr? Pin
George218-Apr-03 2:07
George218-Apr-03 2:07 
AnswerRe: Are there some reference about how to use auto_ptr? Pin
Xander8018-Apr-03 2:14
Xander8018-Apr-03 2:14 
GeneralRe: Are there some reference about how to use auto_ptr? Pin
George218-Apr-03 2:38
George218-Apr-03 2:38 
QuestionWhat means "smart pointer"? Pin
George218-Apr-03 1:28
George218-Apr-03 1:28 
AnswerRe: What means "smart pointer"? Pin
Zdeslav Vojkovic18-Apr-03 1:43
Zdeslav Vojkovic18-Apr-03 1:43 
GeneralRe: What means "smart pointer"? Pin
George218-Apr-03 2:04
George218-Apr-03 2:04 
GeneralProblem in Desk Band Pin
Pious18-Apr-03 0:11
Pious18-Apr-03 0:11 
GeneralDocked toolbar with 2 columns Pin
ABMuppet17-Apr-03 23:20
ABMuppet17-Apr-03 23:20 
General24bit compatibitible Pin
Prog Mmer17-Apr-03 23:16
Prog Mmer17-Apr-03 23: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.