Click here to Skip to main content
15,905,144 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: fopen, fwrite access problem Pin
AAKAra15-May-07 7:44
AAKAra15-May-07 7:44 
QuestionHelp!!! how to avoid GetOpenFileName() dialog show right key menu Pin
zhongwenjia11-May-07 4:54
zhongwenjia11-May-07 4:54 
AnswerRe: Help!!! how to avoid GetOpenFileName() dialog show right key menu Pin
Mark Salsbery11-May-07 5:08
Mark Salsbery11-May-07 5:08 
AnswerRe: Help!!! how to avoid GetOpenFileName() dialog show right key menu Pin
David Crow11-May-07 5:18
David Crow11-May-07 5:18 
GeneralRe: Help!!! how to avoid GetOpenFileName() dialog show right key menu Pin
Mark Salsbery11-May-07 6:31
Mark Salsbery11-May-07 6:31 
GeneralRe: Help!!! how to avoid GetOpenFileName() dialog show right key menu Pin
David Crow11-May-07 6:42
David Crow11-May-07 6:42 
QuestionHow can I use MFC DLL in an WIN 32 Application? Pin
VCSharp00711-May-07 4:32
VCSharp00711-May-07 4:32 
AnswerRe: How can I use MFC DLL in an WIN 32 Application? Pin
Mark Salsbery11-May-07 5:02
Mark Salsbery11-May-07 5:02 
If the MFC dialog is created on the main application thread then the main application thread needs
to be an MFC UI thread. That means your application needs to be an MFC app.

I think the easiest way to convert a Win32 app to MFC would be to create a new MFC project with
the app wizard. MFC provides the WinMain() function so...

From the Win32 code, take application-wide initialization code and put it in the new app class'
InitInstance() override. Cleanup code goes to an ExitInstance() override.

The Win32 app's main window message handling can be moved to MFC window message-map style
handlers. MFC provides the message loop.

Hope that helps get you started.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

Questionconst and volatile Pin
Kiran Pinjala11-May-07 4:27
Kiran Pinjala11-May-07 4:27 
AnswerRe: const and volatile Pin
Nemanja Trifunovic11-May-07 4:30
Nemanja Trifunovic11-May-07 4:30 
AnswerRe: const and volatile Pin
CPallini11-May-07 4:34
mveCPallini11-May-07 4:34 
AnswerRe: const and volatile Pin
Roger Stoltz11-May-07 4:39
Roger Stoltz11-May-07 4:39 
AnswerRe: const and volatile Pin
Nelek13-May-07 20:21
protectorNelek13-May-07 20:21 
Questionhow to show select file and directory dialog in c&api program Pin
zhongwenjia11-May-07 3:54
zhongwenjia11-May-07 3:54 
QuestionRe: how to show select file and directory dialog in c&api program Pin
David Crow11-May-07 4:01
David Crow11-May-07 4:01 
AnswerRe: how to show select file and directory dialog in c&api program Pin
zhongwenjia11-May-07 4:34
zhongwenjia11-May-07 4:34 
GeneralRe: how to show select file and directory dialog in c&api program Pin
David Crow11-May-07 5:15
David Crow11-May-07 5:15 
QuestionDesktop question [modified] Pin
ZaebanB11-May-07 3:48
ZaebanB11-May-07 3:48 
AnswerRe: Desktop question Pin
Hans Dietrich11-May-07 4:29
mentorHans Dietrich11-May-07 4:29 
QuestionCalculation of size of function Pin
SanjaySMK11-May-07 3:39
SanjaySMK11-May-07 3:39 
AnswerRe: Calculation of size of function Pin
Maximilien11-May-07 3:52
Maximilien11-May-07 3:52 
GeneralRe: Calculation of size of function Pin
Russell'11-May-07 23:34
Russell'11-May-07 23:34 
AnswerRe: Calculation of size of function Pin
Hans Dietrich11-May-07 4:21
mentorHans Dietrich11-May-07 4:21 
Questionsave xml in vc++2005 Pin
lavy288311-May-07 3:21
lavy288311-May-07 3:21 
AnswerRe: save xml in vc++2005 Pin
Hans Dietrich11-May-07 3:37
mentorHans Dietrich11-May-07 3:37 

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.