Results 1 to 2 of 2

Thread: GameLauncher

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Hi!
    I'm making a GameLaunhcer!
    I have a List1 and 2 buttons on a form!
    List1 contains the games, button 1 loads a game and button 2 saves a game.
    How do i save a game so i can start i from my launcher??
    Can i use the registry to save the game nanme and path??

    Yours Sincierly
    CyberCarsten
    [email protected] http://home18.inet.tele.dk/cyber/ - [T.H.E most interactive site on the net ))]

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    If you're not too worried about where it goes in the Registry, you can use the VB Functions; GetSetting/GetAllSettings/SaveSetting, ie.

    Add a Game to the Registry..
    Code:
    SaveSetting App.Title, "Game List", "Game 1", "C:\Games\Game1.exe"
    Get a Specific Game Path from the Registry..
    Code:
    sGamePath = GetSetting(App.Title, "Game List", "Game 1", "")
    Get All Games and Paths..
    Code:
    Dim aGames As Variant
    Dim iGame As Integer
    
    aGames = GetAllSettings(App.Title, "Game List")
    For iGame = LBound(aGames, 1) To UBound(aGames, 1)
        List1.AddItem aGames(iGame, 0) & " - " & aGames(iGame, 1)
    Next
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


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