Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Assembly listing of a Header file Pin
CPallini26-Sep-08 8:37
mveCPallini26-Sep-08 8:37 
GeneralRe: Assembly listing of a Header file Pin
ForNow26-Sep-08 11:55
ForNow26-Sep-08 11:55 
GeneralRe: Assembly listing of a Header file Pin
Peter Weyzen26-Sep-08 12:20
Peter Weyzen26-Sep-08 12:20 
GeneralRe: Assembly listing of a Header file Pin
CPallini26-Sep-08 23:01
mveCPallini26-Sep-08 23:01 
GeneralRe: Assembly listing of a Header file Pin
ForNow27-Sep-08 14:14
ForNow27-Sep-08 14:14 
QuestionRe: Assembly listing of a Header file Pin
Bram van Kampen27-Sep-08 12:21
Bram van Kampen27-Sep-08 12:21 
AnswerRe: Assembly listing of a Header file Pin
ForNow27-Sep-08 14:18
ForNow27-Sep-08 14:18 
GeneralRe: Assembly listing of a Header file Pin
Bram van Kampen1-Oct-08 16:21
Bram van Kampen1-Oct-08 16:21 
Well, you should get your compiler switches sorted, I'm not an expert at al at those.

You're experiencing a problem I had 12 years ago, only technology has moved on since. I was an experienced ASM level Programmer, but liked the Widows Interface. I Resisted it for long, I even wrote my Own version of a Windows OS, sitting on top of DOS,(It is NOT simple to keep the mouse moving, and to make the program react when you click on somethiing) but in the end, the Evil day came. I had been left with no other option, but to write a simple Windows App. My employer was of the patient kind, and allowed me 13 weeks to learn windows. I used the 'Scribble' Tutorial, and It took me about five weeks to get to grips with the underlying principles.

It Strikes me that you are used to writing procedural code! Windows does not work that way at all, as a consequence, the tools you try to use to debug, are essentially useless!

Looking at ASM code is only very seldomly productive when writing windows code. The debugging technique is different.

How todo is well described in many very fat books. The synopsys is as follows:-


The General process for writing Windows Code is that you write Event Handlers. An Event Handler is a piece of code that gets excecuted when an event occurs. A User clicking on something is an Event, but there are more! The Windows System may decide that it is time to do something, and create an event of it's own.(On each of these occurrances, an Event is created, and a message to that veffect is sent down the line.)
In Windows, this is all implemented and controlled by 'WindowMessages' being sent and acted upon. What you do as a Windows Programmer, is, react to the messages that are destined to you, the essential part being, that you pass on any message you do not handle to the default handler.

So to write Windows Code, you have to know both how to Create an Event, and how to react when an event occurs.

MFC (I take it you Use MFC) is a CPP implementation of CPP classes
(the MFC Classes) which makes it ver handy to act on messages you want to intercept, knows whichones to pass on, and, in general makes life easier.

If you are serious about MFC windows, forget about assembler, and do the 'Scribble' Tutorial.

Smile | :) Smile | :)

Bram van Kampen

GeneralRe: Assembly listing of a Header file Pin
ForNow1-Oct-08 16:52
ForNow1-Oct-08 16:52 
GeneralRe: Assembly listing of a Header file Pin
Bram van Kampen2-Oct-08 16:04
Bram van Kampen2-Oct-08 16:04 
AnswerRe: Assembly listing of a Header file Pin
Bram van Kampen27-Sep-08 12:19
Bram van Kampen27-Sep-08 12:19 
QuestionCFontDialog incorrect default size Pin
Lonnie Johnson26-Sep-08 5:38
Lonnie Johnson26-Sep-08 5:38 
QuestionRe: CFontDialog incorrect default size Pin
David Crow26-Sep-08 8:14
David Crow26-Sep-08 8:14 
AnswerRe: CFontDialog incorrect default size Pin
Lonnie Johnson26-Sep-08 8:47
Lonnie Johnson26-Sep-08 8:47 
AnswerRe: CFontDialog incorrect default size Pin
PJ Arends26-Sep-08 9:41
professionalPJ Arends26-Sep-08 9:41 
GeneralRe: CFontDialog incorrect default size Pin
Lonnie Johnson26-Sep-08 10:23
Lonnie Johnson26-Sep-08 10:23 
GeneralRe: CFontDialog incorrect default size Pin
PJ Arends26-Sep-08 14:19
professionalPJ Arends26-Sep-08 14:19 
Questionvisual c++ 6 and virtualdub Pin
ditsikts26-Sep-08 5:20
ditsikts26-Sep-08 5:20 
AnswerRe: visual c++ 6 and virtualdub Pin
Matthew Faithfull26-Sep-08 5:31
Matthew Faithfull26-Sep-08 5:31 
QuestionSplit window/dialog? Pin
bosfan26-Sep-08 4:53
bosfan26-Sep-08 4:53 
AnswerRe: Split window/dialog? Pin
CPallini26-Sep-08 5:21
mveCPallini26-Sep-08 5:21 
AnswerRe: Split window/dialog? Pin
Nitheesh George26-Sep-08 6:16
Nitheesh George26-Sep-08 6:16 
QuestionNeed help with a client/server real time video application Pin
Neil Ellerington26-Sep-08 4:07
Neil Ellerington26-Sep-08 4:07 
JokeRe: Need help with a client/server real time video application Pin
Joseph Marzbani26-Sep-08 8:41
Joseph Marzbani26-Sep-08 8:41 
Question[Windows Mobile]: gwes.exe error message Pin
madyastha26-Sep-08 2:56
madyastha26-Sep-08 2:56 

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.