Well hello =)
I want to read out values in an ini with a user specified value.
Let's say this is the ini:
Now I think using a for loop is okay, but MS Visual C++ 2010 doesn't like me using variables in the function GetPrivateProfi leString.
This is how the piece of code is:
However, as you maybe can see, GetPrivateProfi leString only accepts the 'where to look' if it's within quotes. Any way I can circumfence this? (Of course, AmountAdded increases everytime it's looping)
Thank you =)
I want to read out values in an ini with a user specified value.
Let's say this is the ini:
Code:
[Options] AmountAdded=2 [AddedCars] 1=carderp 2=apples
This is how the piece of code is:
Code:
GetPrivateProfileString("AddedCars",string(AmountAdded),NULL,Car1,128,"./TrafficLoad.ini");
Thank you =)
Comment