Click here to Skip to main content
15,881,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: About CD/DVD Writing Software Pin
Trollslayer18-Dec-06 0:50
mentorTrollslayer18-Dec-06 0:50 
AnswerRe: About CD/DVD Writing Software Pin
Hamid_RT18-Dec-06 0:53
Hamid_RT18-Dec-06 0:53 
QuestionWriting to the middle of a file Pin
Inatha17-Dec-06 17:17
Inatha17-Dec-06 17:17 
AnswerRe: Writing to the middle of a file [modified] Pin
anu_8817-Dec-06 18:13
anu_8817-Dec-06 18:13 
GeneralRe: Writing to the middle of a file Pin
Inatha18-Dec-06 1:31
Inatha18-Dec-06 1:31 
GeneralRe: Writing to the middle of a file Pin
anu_8818-Dec-06 17:11
anu_8818-Dec-06 17:11 
QuestionTurning an MFC application to a Win32 Console Application Pin
Mohamed Douffir17-Dec-06 12:43
Mohamed Douffir17-Dec-06 12:43 
AnswerRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 13:36
Mark Salsbery17-Dec-06 13:36 
You could create a new Win32 Console project and then move your code into it incrementally.
This is the easiest way to have a project properly set up as a console app (it can be done
manually as well).

You'll have to remove all uses of MFC classes and any GUI-related Win32 API calls.

You'll have an entry point _tmain (which MFC's CWinApp class hides from you) that is called when
the CRT is done initalizing. This is your app's main thread so you'll need to call (non-MFC)
initialization code that's in your MFC application class' InitInstance() override, do whatever
your app does, and call cleanup code that's usually in your MFC application class' ExitInstance()
override, before returning from _tmain (exiting the app).


GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Stephen Hewitt17-Dec-06 15:53
Stephen Hewitt17-Dec-06 15:53 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 15:59
Mark Salsbery17-Dec-06 15:59 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Stephen Hewitt17-Dec-06 16:00
Stephen Hewitt17-Dec-06 16:00 
GeneralRe: Turning an MFC application to a Win32 Console Application Pin
Mark Salsbery17-Dec-06 16:07
Mark Salsbery17-Dec-06 16:07 
QuestionRe: Turning an MFC application to a Win32 Console Application Pin
Mohamed Douffir18-Dec-06 12:03
Mohamed Douffir18-Dec-06 12:03 
Questionquestion about CDialog Pin
zizzzz17-Dec-06 7:46
zizzzz17-Dec-06 7:46 
AnswerRe: question about CDialog Pin
CPallini17-Dec-06 7:59
mveCPallini17-Dec-06 7:59 
AnswerRe: question about CDialog Pin
Hamid_RT18-Dec-06 6:39
Hamid_RT18-Dec-06 6:39 
QuestionToolBar 24-bit bitmap problem [modified] Pin
levelboy17-Dec-06 7:31
levelboy17-Dec-06 7:31 
AnswerRe: ToolBar 24-bit bitmap problem [modified] Pin
Mark Salsbery17-Dec-06 9:17
Mark Salsbery17-Dec-06 9:17 
GeneralRe: ToolBar 24-bit bitmap problem [modified] Pin
levelboy17-Dec-06 9:50
levelboy17-Dec-06 9:50 
GeneralRe: ToolBar 24-bit bitmap problem Pin
Mark Salsbery17-Dec-06 11:03
Mark Salsbery17-Dec-06 11:03 
GeneralRe: ToolBar 24-bit bitmap problem Pin
levelboy17-Dec-06 11:06
levelboy17-Dec-06 11:06 
QuestionHandles Pin
BlitzPackage17-Dec-06 6:46
BlitzPackage17-Dec-06 6:46 
AnswerRe: Handles Pin
CPallini17-Dec-06 7:33
mveCPallini17-Dec-06 7:33 
GeneralRe: Handles Pin
BlitzPackage17-Dec-06 8:38
BlitzPackage17-Dec-06 8:38 
AnswerRe: Handles Pin
Stephen Hewitt17-Dec-06 11:39
Stephen Hewitt17-Dec-06 11:39 

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.