Click here to Skip to main content
15,887,267 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Creating an executable from hexcode ( c++ ) Pin
Richard Andrew x6422-Jun-10 14:29
professionalRichard Andrew x6422-Jun-10 14:29 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
ALLERSLIT22-Jun-10 14:34
ALLERSLIT22-Jun-10 14:34 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Richard Andrew x6422-Jun-10 14:39
professionalRichard Andrew x6422-Jun-10 14:39 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
ALLERSLIT22-Jun-10 14:44
ALLERSLIT22-Jun-10 14:44 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Richard Andrew x6422-Jun-10 14:53
professionalRichard Andrew x6422-Jun-10 14:53 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
David Crow22-Jun-10 16:04
David Crow22-Jun-10 16:04 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Stephen Hewitt22-Jun-10 18:07
Stephen Hewitt22-Jun-10 18:07 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
MrWhiteboard23-Jun-10 5:58
MrWhiteboard23-Jun-10 5:58 
The best way (only sensible way) is to write code in C or C++ and then use a compiler and linker to generate the "hex code", that is after all, how notepad.exe is created.

Nobody writes binary/hex machine code these days, it's just unheard of.

Besides, the "hex code" you see in notepad is a highly organized file, it is defined by the Microsoft COFF/PE format.

You can download and see this here: http://www.microsoft.com/whdc/system/platform/firmware/pecoff.mspx[^]

The structire is complex, fiddly and requires a great deal of metadata - usually managed by the compiler - in order to work. Unless each section is correctly formed, and correctly linked to other sections and its lengths etc correct, it will just crash when you try and run it.

What is your motive for this question?

Harry.
AnswerRe: Creating an executable from hexcode ( c++ ) Pin
Aescleal22-Jun-10 22:03
Aescleal22-Jun-10 22:03 
GeneralRe: Creating an executable from hexcode ( c++ ) Pin
Stephen Hewitt23-Jun-10 13:27
Stephen Hewitt23-Jun-10 13:27 
QuestionNetwork byte transfer count Pin
Krishnakumartg22-Jun-10 7:53
Krishnakumartg22-Jun-10 7:53 
AnswerRe: Network byte transfer count Pin
Code-o-mat22-Jun-10 9:15
Code-o-mat22-Jun-10 9:15 
AnswerRe: Network byte transfer count Pin
Luc Pattyn22-Jun-10 9:44
sitebuilderLuc Pattyn22-Jun-10 9:44 
GeneralRe: Network byte transfer count Pin
Code-o-mat22-Jun-10 9:53
Code-o-mat22-Jun-10 9:53 
GeneralRe: Network byte transfer count Pin
Luc Pattyn22-Jun-10 9:55
sitebuilderLuc Pattyn22-Jun-10 9:55 
GeneralRe: Network byte transfer count Pin
Code-o-mat22-Jun-10 10:02
Code-o-mat22-Jun-10 10:02 
AnswerRe: Network byte transfer count Pin
Aescleal22-Jun-10 10:21
Aescleal22-Jun-10 10:21 
GeneralRe: Network byte transfer count Pin
Krishnakumartg22-Jun-10 17:50
Krishnakumartg22-Jun-10 17:50 
AnswerRe: Network byte transfer count Pin
David Crow22-Jun-10 16:06
David Crow22-Jun-10 16:06 
QuestionPausing Current Executing Thread and Until the new Thread Returns Pin
Fareed Rizkalla22-Jun-10 5:58
Fareed Rizkalla22-Jun-10 5:58 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns PinPopular
Richard MacCutchan22-Jun-10 6:01
mveRichard MacCutchan22-Jun-10 6:01 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
«_Superman_»22-Jun-10 6:06
professional«_Superman_»22-Jun-10 6:06 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
El Corazon22-Jun-10 6:07
El Corazon22-Jun-10 6:07 
AnswerRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
Aescleal22-Jun-10 6:15
Aescleal22-Jun-10 6:15 
GeneralRe: Pausing Current Executing Thread and Until the new Thread Returns Pin
Richard MacCutchan22-Jun-10 7:20
mveRichard MacCutchan22-Jun-10 7:20 

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.