News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Study time

Started by skywalker, April 16, 2006, 11:38:04 PM

Previous topic - Next topic

skywalker

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

PBrennick

This looks identical to another post you have in here.  What's up with that?  Confused?

Paul
The GeneSys Project is available from:
The Repository or My crappy website

Tedd

He's starting to become something of a celebrity, aren't you Andy?... err Larry?... err you?
No snowflake in an avalanche feels responsible.

sluggy

Mmmmmmm, and the question is what? are? we? supposed? to? be? looking? at?

'Nuff said, thread closed.

P1

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)