Click here to Skip to main content
15,881,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: converting series of Bytes to DWORD Pin
vikas amin21-Dec-05 2:17
vikas amin21-Dec-05 2:17 
GeneralRe: converting series of Bytes to DWORD Pin
kakan21-Dec-05 2:29
professionalkakan21-Dec-05 2:29 
QuestionHelp without ATL or MFC Pin
neliocc20-Dec-05 18:22
neliocc20-Dec-05 18:22 
AnswerRe: Help without ATL or MFC Pin
vikas amin20-Dec-05 19:46
vikas amin20-Dec-05 19:46 
AnswerRe: Help without ATL or MFC Pin
ThatsAlok20-Dec-05 21:22
ThatsAlok20-Dec-05 21:22 
AnswerRe: Help without ATL or MFC Pin
TheGreatAndPowerfulOz21-Dec-05 9:46
TheGreatAndPowerfulOz21-Dec-05 9:46 
Questiondisassembly Pin
devvvy20-Dec-05 17:23
devvvy20-Dec-05 17:23 
AnswerRe: disassembly Pin
The NULL Developer21-Dec-05 0:20
professionalThe NULL Developer21-Dec-05 0:20 
So much of code is added to check for runtime errors:

First of all, checks are performed...
00411AED cmp byte ptr [ebp-119h],0 (check if buffer1 has been initialized or not)
00411AF4 jne main+0D3h (411B03h) ( if initialized, check for next value)
00411AF6 push 411B6Bh ( else push some sort of argument for function __RTC_UninitUse on the stack )
00411AFB call @ILT+555(__RTC_UninitUse) (411230h) ( call the error handler )
00411B00 add esp,4 ( pop value from the stack )
00411B03 cmp byte ptr [ebp-10Dh],0 ( check buffer2 )
00411B0A jne main+0E9h (411B19h)(...)
00411B0C push 411B63h (...)
00411B11 call @ILT+555(__RTC_UninitUse) (411230h)(...)
00411B16 add esp,4(...)

Actual work starts here:
00411B19 mov eax,dword ptr [buffer2] (store the buffer2 pointer in eax)
00411B1C mov ecx,dword ptr [buffer1] (...)
00411B1F mov dl,byte ptr [ecx] (copy a byte to dl from address pointed to by ecx)
00411B21 mov byte ptr [eax],dl ( copy a byte from dl to the address pointed to by eax )

done Big Grin | :-D


"Do first things first, and second things not at all."
Peter Drucker.

GeneralRe: disassembly Pin
devvvy21-Dec-05 16:02
devvvy21-Dec-05 16:02 
GeneralRe: disassembly Pin
devvvy21-Dec-05 16:27
devvvy21-Dec-05 16:27 
QuestionHooking Explorer.exe Pin
ragavan20-Dec-05 17:19
ragavan20-Dec-05 17:19 
QuestionCListCtrl display long text problem. Pin
Zyraph20-Dec-05 16:29
Zyraph20-Dec-05 16:29 
QuestionModeless Property Sheet (Win32) Pin
VeRtRX20-Dec-05 8:22
VeRtRX20-Dec-05 8:22 
Questionreceiving windows messages Pin
Roy K20-Dec-05 8:18
Roy K20-Dec-05 8:18 
GeneralRe: receiving windows messages Pin
Ward20-Dec-05 9:44
Ward20-Dec-05 9:44 
GeneralRe: receiving windows messages Pin
Roy K20-Dec-05 13:10
Roy K20-Dec-05 13:10 
AnswerRe: receiving windows messages Pin
Ward20-Dec-05 19:51
Ward20-Dec-05 19:51 
QuestionRe: receiving windows messages Pin
David Crow20-Dec-05 10:16
David Crow20-Dec-05 10:16 
QuestionCSliderCtrl - dotted focus rect Pin
AJ12320-Dec-05 7:32
AJ12320-Dec-05 7:32 
AnswerRe: CSliderCtrl - dotted focus rect Pin
0verflow14-Oct-12 20:21
0verflow14-Oct-12 20:21 
QuestionHome-grown tooltip window Pin
#realJSOP20-Dec-05 7:14
mve#realJSOP20-Dec-05 7:14 
AnswerRe: Home-grown tooltip window Pin
PJ Arends20-Dec-05 7:36
professionalPJ Arends20-Dec-05 7:36 
QuestionGetSysColor Weirdness Pin
#realJSOP20-Dec-05 6:59
mve#realJSOP20-Dec-05 6:59 
AnswerRe: GetSysColor Weirdness Pin
Jack Puppy20-Dec-05 7:20
Jack Puppy20-Dec-05 7:20 
GeneralRe: GetSysColor Weirdness Pin
#realJSOP20-Dec-05 7:58
mve#realJSOP20-Dec-05 7:58 

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.