Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: default button Pin
Owner drawn20-Nov-05 22:40
Owner drawn20-Nov-05 22:40 
AnswerRe: default button Pin
toxcct21-Nov-05 2:23
toxcct21-Nov-05 2:23 
AnswerRe: default button Pin
Mike Dimmick21-Nov-05 7:27
Mike Dimmick21-Nov-05 7:27 
QuestionHow to move cursor to bottom of view in SDI ? Pin
quangpk20-Nov-05 22:07
quangpk20-Nov-05 22:07 
AnswerRe: How to move cursor to bottom of view in SDI ? Pin
Russell'21-Nov-05 0:55
Russell'21-Nov-05 0:55 
GeneralRe: How to move cursor to bottom of view in SDI ? Pin
quangpk21-Nov-05 15:05
quangpk21-Nov-05 15:05 
AnswerRe: How to move cursor to bottom of view in SDI ? Pin
David Crow21-Nov-05 3:27
David Crow21-Nov-05 3:27 
GeneralRe: How to move cursor to bottom of view in SDI ? Pin
quangpk21-Nov-05 15:02
quangpk21-Nov-05 15:02 
GeneralRe: How to move cursor to bottom of view in SDI ? Pin
David Crow22-Nov-05 3:00
David Crow22-Nov-05 3:00 
QuestionLoggin in a modeledd dialog Pin
kk_vp20-Nov-05 21:20
kk_vp20-Nov-05 21:20 
AnswerRe: Loggin in a modeledd dialog Pin
kakan20-Nov-05 22:01
professionalkakan20-Nov-05 22:01 
GeneralRe: Loggin in a modeledd dialog Pin
kk_vp20-Nov-05 22:22
kk_vp20-Nov-05 22:22 
GeneralRe: Loggin in a modeledd dialog Pin
vikas amin20-Nov-05 22:40
vikas amin20-Nov-05 22:40 
GeneralRe: Loggin in a modeledd dialog Pin
kakan20-Nov-05 22:42
professionalkakan20-Nov-05 22:42 
GeneralRe: Loggin in a modeledd dialog Pin
kk_vp21-Nov-05 1:55
kk_vp21-Nov-05 1:55 
GeneralRe: Loggin in a modeledd dialog Pin
kakan21-Nov-05 2:18
professionalkakan21-Nov-05 2:18 
GeneralRe: Loggin in a modeledd dialog Pin
David Crow21-Nov-05 3:34
David Crow21-Nov-05 3:34 
QuestionExe signature bytes Pin
zooley20-Nov-05 20:09
zooley20-Nov-05 20:09 
AnswerRe: Exe signature bytes Pin
Gary R. Wheeler21-Nov-05 2:03
Gary R. Wheeler21-Nov-05 2:03 
GeneralRe: Exe signature bytes Pin
zooley21-Nov-05 3:00
zooley21-Nov-05 3:00 
QuestionRe: Exe signature bytes Pin
David Crow21-Nov-05 3:51
David Crow21-Nov-05 3:51 
AnswerRe: Exe signature bytes Pin
zooley21-Nov-05 19:20
zooley21-Nov-05 19:20 
QuestionRe: Exe signature bytes Pin
David Crow22-Nov-05 3:02
David Crow22-Nov-05 3:02 
AnswerRe: Exe signature bytes Pin
zooley22-Nov-05 19:51
zooley22-Nov-05 19:51 
AnswerRe: Exe signature bytes Pin
David Crow21-Nov-05 3:43
David Crow21-Nov-05 3:43 
zooley wrote:
Can anybody tell me how can i acces the first bytes at the entrypoint of an exe.


HANDLE hFile = CreateFile(..., GENERIC_READ, FILE_SHARE_READ, ...);
DWORD dwRead;
BYTE byte1, byte2;
ReadFile(hFile, &byte1, 1, &dwRead, NULL);
ReadFile(hFile, &byte2, 1, &dwRead, NULL);
...
CloseHandle(hFile);
zooley wrote:
...but i don't know how i can translate the entrypoint to fileoffset...


What exactly do you mean by this?


"Take only what you need and leave the land as you found it." - Native American Proverb


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.