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

C / C++ / MFC

 
GeneralHooking modal Windows Pin
slrao16-Nov-03 17:26
slrao16-Nov-03 17:26 
GeneralDialog windows -- where does the application code go Pin
Dave Sweetser16-Nov-03 16:35
Dave Sweetser16-Nov-03 16:35 
GeneralRe: Dialog windows -- where does the application code go Pin
Prakash Nadar16-Nov-03 16:58
Prakash Nadar16-Nov-03 16:58 
GeneralRe: Dialog windows -- where does the application code go Pin
Dave Sweetser16-Nov-03 17:18
Dave Sweetser16-Nov-03 17:18 
GeneralRe: Dialog windows -- where does the application code go Pin
Prakash Nadar16-Nov-03 17:30
Prakash Nadar16-Nov-03 17:30 
GeneralRe: Dialog windows -- where does the application code go Pin
PJ Arends16-Nov-03 19:06
professionalPJ Arends16-Nov-03 19:06 
GeneralRe: Dialog windows -- where does the application code go Pin
David Crow17-Nov-03 4:38
David Crow17-Nov-03 4:38 
GeneralRe: Dialog windows -- where does the application code go Pin
Mike Danberg17-Nov-03 10:20
Mike Danberg17-Nov-03 10:20 
Hi, I'll try to help you out as it kinda seems to me everyone else hasn't really answered your question fully.

First off there's two main ways to go about programming Windows. There's the MFC and the Win32 API. MFC is Microsoft's wrapper classes around the Win32 API. MFC in a nutshell is Win32 with the details hidden from you, i.e. you use Microsoft's functions which in turn access the Win32 API.

I use MFC, so my knowledge of Win32 is vague, but in Win32 the application starts off in the WinMain() function. In MFC you can't see this, because its hidden behind the scenes. There really isn't a starting point that you can "see" in MFC. Your best bet as to understanding where an MFC app starts is by looking at the file projectname.cpp where the projectname is what you called the project. That's the first file thats used where you see any code.

Understanding the Win32 API will help you in using MFC, but its not necessary and from the little bit I've tried of Win32, there's a lot more stuff going on and takes longer to learn than MFC, I think. So I'd recommend starting off with MFC.

There's 3 different types of applications that you can make (as you've probably already seen in the wizard). Dialog based, SDI, or MDI. You should start off using the wizard and choosing either Dialog based or SDI to start off with.

There's a lot more to explain after that, but I don't want to write a book here unless I know I'm helping. I'd be happy to help you out though. Just send me a message and I'll explain more or if you really want help I could walk you through some examples over instant messenger if you wanted to.
GeneralRe: Dialog windows -- where does the application code go Pin
Mike Danberg17-Nov-03 11:43
Mike Danberg17-Nov-03 11:43 
General.NET issue Pin
kjessee16-Nov-03 15:32
kjessee16-Nov-03 15:32 
GeneralRe: .NET issue Pin
Christian Graus16-Nov-03 16:12
protectorChristian Graus16-Nov-03 16:12 
GeneralRe: .NET issue Pin
kjessee16-Nov-03 16:20
kjessee16-Nov-03 16:20 
GeneralRe: .NET issue Pin
Christian Graus16-Nov-03 16:28
protectorChristian Graus16-Nov-03 16:28 
GeneralRe: .NET issue Pin
Prakash Nadar16-Nov-03 17:24
Prakash Nadar16-Nov-03 17:24 
GeneralRe: .NET issue Pin
kjessee16-Nov-03 21:55
kjessee16-Nov-03 21:55 
Questionwhere's main() ??? Pin
Dave Sweetser16-Nov-03 14:10
Dave Sweetser16-Nov-03 14:10 
AnswerRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 14:22
professionalRavi Bhavnani16-Nov-03 14:22 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 14:34
Dave Sweetser16-Nov-03 14:34 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:00
professionalRavi Bhavnani16-Nov-03 15:00 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:22
Dave Sweetser16-Nov-03 15:22 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani16-Nov-03 15:37
professionalRavi Bhavnani16-Nov-03 15:37 
GeneralRe: where's main() ??? Pin
Dave Sweetser16-Nov-03 15:57
Dave Sweetser16-Nov-03 15:57 
GeneralRe: where's main() ??? Pin
Johnny ²16-Nov-03 21:43
Johnny ²16-Nov-03 21:43 
GeneralRe: where's main() ??? Pin
Ravi Bhavnani17-Nov-03 3:43
professionalRavi Bhavnani17-Nov-03 3:43 
GeneralI need some help please Pin
Anonymous16-Nov-03 13:18
Anonymous16-Nov-03 13:18 

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.