PDA

Click to See Complete Forum and Search --> : To store integers, strings in a DLL, INI?


Idiot2VB
Jan 17th, 2000, 02:27 AM
Does anyone know how i could easily create something, that would hold values such as a string, and an integer?

OK, i'm making this game, with HIGH SCORES. Now in the high scores, i want the user's name to be in string, and the score in integer.

I tried with INI file. I can get the name in since its string. But i can't get the integer value of score since its in an integer variable. I've tried to convert the integer to a string, but then i get "0" as a return value.

Anyone know how i can do this? Like maybe possibly tell me how to do this? Is it possible to usea DLL file? If so, how can i use a dll file? I havn't worked once with DLL files, i'm pretty familiar with INI tho. I don't think INI can hold integer values. So, please if some one can help me accomplish this, i'd be really thankful.

Thank you.

netSurfer
Jan 17th, 2000, 02:42 AM
I don't understand what you mean that you can't put a Integer into an INI file? For that matter, why use a INI file and API calls? Just make a plain file that you write the name and score into. You could even make it harder to read by putting in nonense numbers/letters in or converting the ASC values before writing to the file.