24-04-2008, 09:26 PM
im sry if this is a newb question but i cant seem to find the answer anywhere. How do you get your program to save, edit or read a .txt or .ini file?
How do you...
|
24-04-2008, 09:26 PM
im sry if this is a newb question but i cant seem to find the answer anywhere. How do you get your program to save, edit or read a .txt or .ini file?
24-04-2008, 09:44 PM
GetVar and PutVar are how it's handled by default server side. Open your server project, and go to modDatabase. That's where most saving and loading takes place.
24-04-2008, 09:52 PM
could you tell me how you would save them and read and edit them like from scratch. cuz im making a game engine from scratch (actually just a chatroom program right now but it will eventually get to that)
24-04-2008, 10:37 PM
Google it... 8)
24-04-2008, 11:01 PM
errrrr... i just went and looked and i still cant seem to find it could you just please tell me what the syntax is to do this for VB6 please
24-04-2008, 11:33 PM
Code: Dim FileName As String Thats basically ripped right out of the server side of MSE1. Look in the server side at PutVar and GetVar.
24-04-2008, 11:41 PM
ok let me ask this is PutVar and GetVar VB6 syntax or just functions (or subs) that are in the Mirage Source cuz i cant find where these lead to
25-04-2008, 12:05 AM
i googled it and got a working one in like 5 minutes (one that isn't put/getvar) the one i have takes the whole text file.
25-04-2008, 12:19 AM
Stomach Pulser Wrote:i googled it and got a working one in like 5 minutes (one that isn't put/getvar) the one i have takes the whole text file.huh? i dont understand about the whole text file what ever you are talking about. all i want to know is what syntax is used so that my program can save variables to .ini files, but im NOT using MS i am making my own engine im sry but now im slightly confused
25-04-2008, 12:28 AM
Google:
Quote:read write to ini files vb6 Its not hard =P
25-04-2008, 12:16 PM
Dave Wrote:GetVar and PutVar are MirageSource custom wrappers for the Win32 API functions GetPrivateProfileString and SetPrivateProfileString, respectively Ok thank you Dave that was all i was wanting to know thank you |
« Next Oldest | Next Newest »
|