ovhan wrote:
I noticed that when you look at the vbgore client/server source code there is a new object called GOREsockClient, im curious , how did they make that? ive been looking for 2 months now , how to make objects , with their own properties . and events , and user friendly so i dont have to enter the same code each time i want to use it. it would be awsome if somone could help me out with this as i have been stuck for quite a while and it is putting my game off quite a bit at least 2 months now.
To the original post, if I understand your question: You want to create your own libraries?
Visual Basic 6 supports different ways to do that. At the most basic level, within your program code you'll want to add a file of type class. (The GORESockClient is a control, which would get more complicated to explain.) That adds a Class1.cls file to the project, which you can save to whatever friendly name you want. Then you can add things like Get and Set properties and subs and functions as much as you want. Just make them a Public function, etc. to see them when you reference it from elsewhere. In the server program code, UserStats.cls is a good example.
If you just want your own functions, it is simpler to add a .bas code module and make public functions.
If none of what I typed made any sense, then you may want to give yourself a crash course in VB programming before you dive in any further.