Click here to Skip to main content
15,911,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to change color of title bar Pin
Hamid_RT18-Feb-08 19:34
Hamid_RT18-Feb-08 19:34 
GeneralRe: How to change color of title bar Pin
Rajesh R Subramanian18-Feb-08 19:46
professionalRajesh R Subramanian18-Feb-08 19:46 
GeneralRe: How to change color of title bar Pin
Hamid_RT18-Feb-08 20:09
Hamid_RT18-Feb-08 20:09 
JokeRe: How to change color of title bar Pin
Rajkumar R18-Feb-08 20:23
Rajkumar R18-Feb-08 20:23 
Questionhow to use image Pin
gentleguy18-Feb-08 17:34
gentleguy18-Feb-08 17:34 
AnswerRe: how to use image Pin
Hamid_RT18-Feb-08 19:28
Hamid_RT18-Feb-08 19:28 
AnswerRe: how to use image Pin
Mark Salsbery19-Feb-08 8:27
Mark Salsbery19-Feb-08 8:27 
Generallinker Pin
George_George18-Feb-08 16:48
George_George18-Feb-08 16:48 
Hello everyone,


Here are two conflicting documents from MSDN. About whether linker will modify code generated by compiler. I quote both of them here.

Document (1) mentioned linker can not modify any code generated by compiler, but document (2) mentioned linker will replace address code generated by compiler during fixup process.

Which one is correct?

1.

http://blogs.msdn.com/oldnewthing/archive/2006/07/21/673830.aspx

--------------------
But the linker can't rewrite the code generated by the compiler.
--------------------

2.

http://www.microsoft.com/msj/0797/hood0797.aspx

--------------------
Consider a call to a function named Foo in C++:


//...
Foo();
//...



The exact bytes emitted from a 32-bit C++ compiler will be this:


E8 00 00 00 00



The 0xE8 is the CALL instruction opcode. The next DWORD should contain the offset to the Foo function (relative to the CALL instruction). It's pretty clear that Foo probably isn't zero bytes away from the CALL instruction. Simply put, this code wouldn't work as expected if you were to execute it. The code is broken, and needs to be fixed up. In the above example, the linker needs to replace the DWORD following the CALL opcode with the correct address of Foo.
--------------------


thanks in advance,
George
GeneralRe: linker Pin
David Crow18-Feb-08 17:13
David Crow18-Feb-08 17:13 
GeneralRe: linker Pin
George_George18-Feb-08 18:49
George_George18-Feb-08 18:49 
GeneralRe: linker Pin
David Crow19-Feb-08 2:27
David Crow19-Feb-08 2:27 
GeneralRe: linker Pin
George_George19-Feb-08 14:50
George_George19-Feb-08 14:50 
GeneralRe: linker Pin
Stephen Hewitt18-Feb-08 17:55
Stephen Hewitt18-Feb-08 17:55 
GeneralRe: linker Pin
George_George18-Feb-08 18:50
George_George18-Feb-08 18:50 
GeneralNasty runtime error with WM_PAINT in native GUI framework. Pin
edu.net18-Feb-08 14:38
edu.net18-Feb-08 14:38 
GeneralRe: Nasty runtime error with WM_PAINT in native GUI framework Pin
Joe Woodbury18-Feb-08 16:05
professionalJoe Woodbury18-Feb-08 16:05 
GeneralRe: Nasty runtime error with WM_PAINT in native GUI framework Pin
edu.net18-Feb-08 22:00
edu.net18-Feb-08 22:00 
GeneralRe: Nasty runtime error with WM_PAINT in native GUI framework. Pin
Mark Salsbery19-Feb-08 8:33
Mark Salsbery19-Feb-08 8:33 
GeneralRe: Nasty runtime error with WM_PAINT in native GUI framework - WORKAROUND FOUND Pin
edu.net19-Feb-08 13:59
edu.net19-Feb-08 13:59 
Questionplease explain how it works Pin
ashwiny18-Feb-08 14:14
ashwiny18-Feb-08 14:14 
GeneralRe: please explain how it works Pin
Joe Woodbury18-Feb-08 16:07
professionalJoe Woodbury18-Feb-08 16:07 
QuestionRe: please explain how it works Pin
David Crow18-Feb-08 17:16
David Crow18-Feb-08 17:16 
GeneralBitmaps Painting Pin
Bram van Kampen18-Feb-08 13:21
Bram van Kampen18-Feb-08 13:21 
GeneralRe: Bitmaps Painting Pin
Sameerkumar Namdeo18-Feb-08 15:50
Sameerkumar Namdeo18-Feb-08 15:50 
AnswerRe: Bitmaps Painting Pin
Rajkumar R18-Feb-08 19:17
Rajkumar R18-Feb-08 19:17 

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.