Results 1 to 2 of 2

Thread: To store integers, strings in a DLL, INI?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 1999
    Posts
    25

    Post

    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.

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Calgary Alberta
    Posts
    359

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width