Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: corrupt callstack after crash in release Pin
Joaquín M López Muñoz3-Feb-03 6:41
Joaquín M López Muñoz3-Feb-03 6:41 
GeneralRe: corrupt callstack after crash in release Pin
Tim Smith3-Feb-03 6:59
Tim Smith3-Feb-03 6:59 
GeneralRe: corrupt callstack after crash in release Pin
AlexO3-Feb-03 8:14
AlexO3-Feb-03 8:14 
GeneralRe: corrupt callstack after crash in release Pin
Neville Franks3-Feb-03 9:32
Neville Franks3-Feb-03 9:32 
GeneralYahoo mail external reader Pin
progman3-Feb-03 6:31
progman3-Feb-03 6:31 
GeneraltimeSetEvent() issues Pin
Anonymous3-Feb-03 6:11
Anonymous3-Feb-03 6:11 
GeneralRe: timeSetEvent() issues--typo in above post Pin
Anonymous3-Feb-03 6:13
Anonymous3-Feb-03 6:13 
Questionwhat's in the EXE? Pin
lbc3-Feb-03 6:11
lbc3-Feb-03 6:11 
Hello i am wondering about the following things because i'd like to get an idea about a source code is related to the final EXE

Let's say we have a class (i am working with VC7, assuming no optimizations at all)

class CMyDlg : public CDialog
{
// Construction
public:
CMyDlg(CWnd* pParent = NULL); // standard constructor

... // data
int d1, d2, d3;
CString s1, s2, s3;
...

... //methods
void method1 (int v1);
void method2 (int v2);
...
};

// Implementation for the CMyDlg Class

...
CMyDlg::CMyDlg(CWnd* pParent /* = NULL*/)
: CDialog(CMyDlg::IDD, pParent)
{

d1=100;
d2=200;
d3=300;
s1="default";
s2="";
s3="hello";
}

void CMyDlg::method1( int v1)
{
// do something
...
}

void CMyDlg::method2( int v2)
{
// do something
...
}

well, imagine to compile and get the EXE.

Some questions:

1) If, for refactoring purposes i decide to rename the class into something like CMyOtherDlg, and leave everything else unchanged (data and methods), the resulting compiled code inside the EXE will be exactly the same?

2) What about changing also the members and methods names?

3) If i change (just for example) the declaration order and/or the inizialization order for the variables, will this 'matter' something or will have completely no influence on the final EXE?

4) Do the names used inside the source code mean 'something special' in the final EXE? Why, for example, if i examine the resulting EXE code, with an HEX editor i am able to find some MFC or API functions names and not the names of my functions/classes (at least it seems so to me)?

Any info about the above will be greatly appreciated, as well as any web links helpful to understand (even from a general point of view, let's say an overview) about how the VC compiler 'translates' the source code, links it and finally produces the EXE.

thanks in advance!





best regards
AnswerRe: what's in the EXE? Pin
Joaquín M López Muñoz3-Feb-03 6:33
Joaquín M López Muñoz3-Feb-03 6:33 
AnswerRe: what's in the EXE? Pin
Anonymous3-Feb-03 6:34
Anonymous3-Feb-03 6:34 
AnswerRe: what's in the EXE? Pin
JohnMcL3-Feb-03 9:27
JohnMcL3-Feb-03 9:27 
GeneralCRichEditCtrl Problem in Win9x Pin
Ricky_TheBard3-Feb-03 6:07
Ricky_TheBard3-Feb-03 6:07 
GeneralIs it 95? Pin
AlexO3-Feb-03 7:56
AlexO3-Feb-03 7:56 
QuestionCommit Peak value? Pin
Andreas Saurwein3-Feb-03 6:03
Andreas Saurwein3-Feb-03 6:03 
Generalcatch "Ctrl" key Pin
jeremysay3-Feb-03 4:57
jeremysay3-Feb-03 4:57 
GeneralRe: catch "Ctrl" key Pin
Alvaro Mendez3-Feb-03 5:53
Alvaro Mendez3-Feb-03 5:53 
QuestionWhere to add my code in OnInitialUpdate? Pin
ns3-Feb-03 4:57
ns3-Feb-03 4:57 
AnswerRe: Where to add my code in OnInitialUpdate? Pin
jeremysay3-Feb-03 5:00
jeremysay3-Feb-03 5:00 
AnswerRe: Where to add my code in OnInitialUpdate? Pin
S O S3-Feb-03 5:01
S O S3-Feb-03 5:01 
AnswerRe: Where to add my code in OnInitialUpdate? Pin
Alvaro Mendez3-Feb-03 5:59
Alvaro Mendez3-Feb-03 5:59 
GeneralThanks everyone! Pin
ns3-Feb-03 6:14
ns3-Feb-03 6:14 
GeneralRe: Thanks everyone! Pin
Neville Franks3-Feb-03 9:34
Neville Franks3-Feb-03 9:34 
GeneralRe: Thanks everyone! Pin
Alvaro Mendez3-Feb-03 12:22
Alvaro Mendez3-Feb-03 12:22 
GeneralRe: Thanks everyone! Pin
Neville Franks3-Feb-03 12:33
Neville Franks3-Feb-03 12:33 
GeneralSocket message too large Pin
Cheetos233-Feb-03 4:35
Cheetos233-Feb-03 4:35 

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.