Jump to content
This is not recommended for shared computers
Sign in anonymously
Don't add me to the active users list
Banner advertising on our site currently available from just $5!
1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!
17 July 2014 - 03:11 AM
I've seen things....:
return STATUS_ERROR; //This returns the status error
Anyway, if i look at 5+ year old code of mine i still would laugh out loud many many times. ;)
23 October 2013 - 05:21 AM
This is just bad, bad code design. You should seriously consider a rework of your game structure.
It's pretty pointless to store anything in a "i dont know exactly how many items i need to store" matter.
Sure, the example code above will work, even if you'd need a variable which has the number of elements to read, also stored in your file.
If you really want to continue with your approach, check out the previously mentioned JSON format, even XML will do.
If you continue in that hackish way, you'll be very frustraed at some point and you'll end up throwing your project away.
27 September 2013 - 06:50 AM
I found this one pretty well designed:
26 August 2013 - 05:27 AM
Hasnt all of this been moved into the Windows SDK?
Search for it, either Windows 7 or Windows 8 SDK's available.
download and install it, maybe it's something like that.
28 March 2013 - 01:54 AM
Little bit off-topic, sorry about that, but where did you get your "Component" system ideas from? Is that from a specific framework?
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC