-
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 :o))]
-
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]