Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem with initializing Main args! Pin
Largo6523-Sep-09 12:58
Largo6523-Sep-09 12:58 
AnswerRe: Problem with initializing Main args! Pin
Game-point23-Sep-09 18:40
Game-point23-Sep-09 18:40 
AnswerRe: Problem with initializing Main args! Pin
Saurabh.Garg23-Sep-09 18:56
Saurabh.Garg23-Sep-09 18:56 
AnswerRe: Problem with initializing Main args! Pin
«_Superman_»23-Sep-09 19:23
professional«_Superman_»23-Sep-09 19:23 
AnswerRe: Problem with initializing Main args! Pin
Richard MacCutchan23-Sep-09 22:32
mveRichard MacCutchan23-Sep-09 22:32 
QuestionC++ with in-code Assembly Pin
paolosh23-Sep-09 10:22
paolosh23-Sep-09 10:22 
AnswerRe: C++ with in-code Assembly Pin
ied23-Sep-09 10:28
ied23-Sep-09 10:28 
AnswerRe: C++ with in-code Assembly Pin
Rick York23-Sep-09 10:37
mveRick York23-Sep-09 10:37 
I disagree with the other answer. I think that, yes, you should push and pop any registers that you are going to touch. The compiler will take care of the rest automatically.

As an exercise, you should turn assembly code listings on for a small project and examine some of the code emitted by the compiler. In can be very educational for things like this.

-edit- if you have doubts then comment off the push and pops and see what happens. The phrase "unexpected results" comes to mind. However, if you change ECX without restoring it the results will be not unexpected - the app will most likely crash since the this pointer is different.
QuestionLoadImage fails to locate file Pin
raich23-Sep-09 8:32
raich23-Sep-09 8:32 
QuestionRe: LoadImage fails to locate file Pin
David Crow23-Sep-09 9:03
David Crow23-Sep-09 9:03 
AnswerRe: LoadImage fails to locate file Pin
raich23-Sep-09 9:42
raich23-Sep-09 9:42 
QuestionRe: LoadImage fails to locate file Pin
David Crow23-Sep-09 10:00
David Crow23-Sep-09 10:00 
AnswerRe: LoadImage fails to locate file Pin
norish23-Sep-09 21:43
norish23-Sep-09 21:43 
AnswerRe: LoadImage fails to locate file Pin
ied23-Sep-09 9:56
ied23-Sep-09 9:56 
GeneralRe: LoadImage fails to locate file Pin
raich23-Sep-09 10:02
raich23-Sep-09 10:02 
AnswerRe: LoadImage fails to locate file Pin
CPallini23-Sep-09 10:02
mveCPallini23-Sep-09 10:02 
QuestionOverriding void AFXAPI SerializeElements [modified] Pin
al250023-Sep-09 7:22
al250023-Sep-09 7:22 
AnswerRe: Overriding void AFXAPI SerializeElements [modified] Pin
al250023-Sep-09 10:24
al250023-Sep-09 10:24 
GeneralRe: Overriding void AFXAPI SerializeElements Pin
al250023-Sep-09 12:47
al250023-Sep-09 12:47 
QuestionShell notification when opening a folder Pin
mkoroudjiev23-Sep-09 6:15
mkoroudjiev23-Sep-09 6:15 
QuestionRe: Shell notification when opening a folder Pin
David Crow23-Sep-09 6:37
David Crow23-Sep-09 6:37 
AnswerRe: Shell notification when opening a folder Pin
Stuart Dootson23-Sep-09 11:53
professionalStuart Dootson23-Sep-09 11:53 
AnswerRe: Shell notification when opening a folder Pin
kilt24-Sep-09 7:05
kilt24-Sep-09 7:05 
QuestionHow to determine the desktop type?? Pin
Sunil P V23-Sep-09 3:09
Sunil P V23-Sep-09 3:09 
QuestionRe: How to determine the desktop type?? Pin
David Crow23-Sep-09 3:47
David Crow23-Sep-09 3:47 

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.