Hello, I am writing a saved game editor for an old, old, old DOS game called X-Com:UFO Defense. I'll be writing it for TFTD too... but I digress... Actually, I've already written it a few times, and it was always written with Visual Basic (VB6, then VB.net). Which was fine, a bit clunky and everything but very easy to just dive right in. Well, I got to thinking about the fact that with the advent of DosBox/Steam you can play X-Com on any operating system you want. So, I got to thinking that I should make something that would be platform independent so that anyone who wanted to could use it.
I thought about Java, but I've never really used it and I like C++ and would rather use that to hone my C++ skills. I've got some VERY basic windows programming in C++ under my belt, so I think I understand how that works on a basic level. So, what is the best way to achieve platform independence painlessly? I was considering openGL, since I can load windows and images without having to worry about what operating system the user is running, GLUT would allow me to take input from the keyboard and mouse without worrying about that stuff too. However, I feel like that's got a whole lot of stuff I will never use and I wonder if there might be some better system out there. So, that's why I'm here, looking for some advice. It's pretty modular and I'm developing it so I can just develop a Windows and Linux version separately but keep all the file handling the same.
That's another thing, this edits files, do I need to worry about that moving to Linux from Windows? Will an fstream work the same in Linux as it does in Windows, or do I need to find an fstream for Linux? I've tried searching for these answers but it seems since I taught my wife how to Google, my ability has only decreased. Thanks ahead of time.
-hatfarm
I thought about Java, but I've never really used it and I like C++ and would rather use that to hone my C++ skills. I've got some VERY basic windows programming in C++ under my belt, so I think I understand how that works on a basic level. So, what is the best way to achieve platform independence painlessly? I was considering openGL, since I can load windows and images without having to worry about what operating system the user is running, GLUT would allow me to take input from the keyboard and mouse without worrying about that stuff too. However, I feel like that's got a whole lot of stuff I will never use and I wonder if there might be some better system out there. So, that's why I'm here, looking for some advice. It's pretty modular and I'm developing it so I can just develop a Windows and Linux version separately but keep all the file handling the same.
That's another thing, this edits files, do I need to worry about that moving to Linux from Windows? Will an fstream work the same in Linux as it does in Windows, or do I need to find an fstream for Linux? I've tried searching for these answers but it seems since I taught my wife how to Google, my ability has only decreased. Thanks ahead of time.
-hatfarm