The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: skywalker on April 16, 2006, 11:38:04 PM

Title: Study time
Post by: skywalker on April 16, 2006, 11:38:04 PM
I am studying this code B4 I post some $s in a week. It's some "roll your own code".
It should make it possible to to use any "characters you care to type".

This is copyrighted. Skywalker 04/06/2006 Just kidding. :-)

_WritePrivateProfileInt proc szKeyName:dword, szValue:dword, iValue:dword,
szIniFile:dword

        local   lpTempBuffer[16]:byte           ; temporary buffer

        lea     eax,lpTempBuffer                ;

        push    iValue                          ; value
        push    offset szLu                     ; format string
        push    eax                             ; output buffer
        call    wsprintfA                       ; format int
        pop     eax                             ;
        add     esp,4*2                         ; correct stack

        push    szIniFile                       ; ini filepath
        push    eax                             ; integer converted to string
        push    szValue                         ; value name
        push    szKeyName                       ; section
        call    WritePrivateProfileString

        ret
_WritePrivateProfileInt endp
Title: Re: Study time
Post by: PBrennick on April 18, 2006, 12:55:22 AM
This looks identical to another post you have in here.  What's up with that?  Confused?

Paul
Title: Re: Study time
Post by: Tedd on April 18, 2006, 09:07:52 AM
He's starting to become something of a celebrity, aren't you Andy?... err Larry?... err you?
Title: Re: Study time
Post by: sluggy on April 18, 2006, 12:28:31 PM
Mmmmmmm, and the question is what? are? we? supposed? to? be? looking? at?

'Nuff said, thread closed.
Title: Re: Study time
Post by: P1 on April 18, 2006, 02:50:09 PM
skywalker,

Another rude and annoying thing is to double/triple post.  On a board of this size, you are not fooling anyone.

Regards,  P1  :8)