News:

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

GetProfilestring

Started by ragdog, September 20, 2009, 12:44:01 PM

Previous topic - Next topic

ragdog

Hi

I Have a question to GetPrivateProfileString
this ini file store a Number example 123

[xyz]
Number=123

This number need i for store to a Struct
struct   Test

   dwNumber   dd 0;   
ENDS
mov    [esi].dwNumber, 123  << this works fine now get i this number from ini


must i convert this number in hex or dword?


greets

Ist solved atodw   ::)

MichaelW

eschew obfuscation

BlackVortex

 :toothy :green :toothy :green :toothy :green :toothy :green

ragdog

 :green Ohh lol

Thanks this is simply :bg

Greets
ragdog

ragdog

Hi


I have a question to this GetPrivateProfileInt

I use for my code in the ini a value from 0-9 ,If the entry empty what is with a error check

example ini file
[Option]
Value=0

I have a check for if eax ==0

if this value empty
[Option]
Value=

works this also hmm :'(

Gives a other solution?

Greets

MichaelW

For "Value=", or if the section or key is not found, the return value will be whatever was specified in the nDefault parameter. If 0 is a valid value, then perhaps you could set nDefault to -1 and check for that.
eschew obfuscation