The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: skywalker on April 01, 2006, 02:51:27 AM

Title: 2nd ? on previous topic
Post by: skywalker on April 01, 2006, 02:51:27 AM
When the int 3 is in, EAX has 5 but MessageBox doesn't work. Why is that ?

fn WriteProfileString, Offset sec, ADDR key, ADDR value
fn GetProfileInt,Offset sec,ADDR key,0

;int 3      ; for some reason, MessageBox doesn't work if this is in ?
.if EAX==5    ;Show a message if stored value is OK

invoke MessageBox, 0, ADDR valueOK, ADDR Sample,MB_ICONINFORMATION
Title: Re: 2nd ? on previous topic
Post by: PBrennick on April 01, 2006, 05:51:18 AM
Skywalker,
If you look in your other post you will see that I fixed your GOASM conversion.

Paul