MFC using Visual C++
-
Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You
-
Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You
Iceberg76 wrote: For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button Look for
CreateProcess()
andShellExecute()
. These two functions are not related to MFC, however.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You
-
Iceberg76 wrote: For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button Look for
CreateProcess()
andShellExecute()
. These two functions are not related to MFC, however.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
Thanks, Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks
-
Thanks, Nice online samples! Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks
-
Thanks, Nice online samples! Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks
-
Hello, I dove into Windows programming about 6 months ago. So far I have only been working with Win32, but I am ready to give MFC a try. For now, I just want to do simple things like the general hello sample. For example, I am looking to create a simple GUI interface that would launch another application with some command line parameters at the press of a button. Also, maybe have a cool bitmap as well. Can anyone point me to some good samples? Also, are there any must have books in MFC? Thank You
-
Oh, sorry! I found the properties tab to enable a normal empty win32 into an MFC application.
The problem is that, quite simply, you can create a Win32 app that links to MFC, which you may decide to do in order to get to CString or something, but an MFC GUI application really needs all those classes that the wizard is creating for you. The simplest thing is a dialog based app, which does not use Doc/View. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
Thanks, Just one more question... How do I create an empty project for a MFC application. For example if I use Visual C++ 7.0 to use the MFC wizard, I don't see an empty project option. The general hello world app looks much more simple, but what do I do if I want to start from scratch and make my own general hello world? I start out with way more files using the Wiz. Thanks
I'm not sure of the project types that v7 offers, but with v6, you can create a console application that supports MFC. The resulting project contains two .cpp and two .h files. That's about as small as it gets. With a dialog-based project, you'll get three of each, plus a res folder.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)