Hello Everyone!
I'm struggling with week's 5 episodes.
I'm new at C programming and all the DLL, compile switches, and above all, Visual Studio configuration problems that I'm having are sinking my moral to the point that I'm close to surrender.
I'm working with Visual Studio as an IDE. I thought that if I was going to learn a new IDE better if it was one industry standard. Also is Casey's debbuger choice. So if i use another IDE I will need to learn 2 different softwares (plus C plus some C++).
My project was created as an empty project (not makefile) and so far I've been changing all the necessary in the "Solution Properties" and "Project Properties" and "File Properties" to make it work. I wasn't using the build.bat file but I managed to compile with all the switches, warning levels, etc.. same as Casey.
All was fine and dandy until day 21.
I watched and rewatched day 21,22,23, I've searched google and this forum. I've tried to make a new Solution with the makefile template but I can't figure out what the **** i'm supossed to do with the wizzard. I don't even understand the diference between a blank solution and a MakeFile solution.
So , after too many hours of dispair (+20) I beg you to help me. As I've said. I'm new with Visual Studio (and C) and I'm regretting the decision to use it at all (VS).
I think I'm missing something fundamental.
As I understand if I'm in a windows computer that has a C compiler I can run a .bat file with a proper order to the compiler (cl-) and compile wathever I want.
In this project I have to compile two different translation units. The platform layer (win32_handmade.cpp) and the actual game code (handmade.cpp). Each one of them includes their headers files.
The platform layer is the executable (.exe) thing with code that never will change (on the fly) and the game code is in DLL format so I can change things recompile and reload without closing the "main" program.
I need to make 1 solution with 2 projects in it that share the same folder. One for the .exe and one for the DLL. But I honestly can't figure out how to set-up Visual Studio.
Even after reading
This post and
this one and of course,
the main one. There is A LOT of information in those posts but I can't figure out nothing coherent from them. I feel stupid.
I've tried to make a new makefile solution, also to run from command line, to run from 2 separate solutions, to run from 1 solution with two projects, to set up all the switches without the .bat to set up all the switches with a .bat to make a build_dll.bat as in the previous post and use the external tools.
Maybe is because I'm spanish and english is not my language and I'm missing something from previous episodes. But I don't undertand what/where is the problem with using only the build.bat as an external tool.
And all this pain is to make the "fun" part of the windows layer. (For Casey is the fun part of win32..to me is the awesome, but sadly not fun anymore, part)
And since this is an educational forum I better ask before giving up, (and ask for A LOT (I know))
So, please, can anybody help me to configure my VisualStudio "solution" to acomplish this? am I wrong about something?
I'm wishing/praying for a step-by-step guide for a Visual Studio set-up.
Something that I could follow to get VS to compile the two things (And run them). Some kind of tutorial that everybody can follow to put VS ready at the End of the win32 platform layer prototype (Day 25)
Or maybe is best to download Emacs or another IDE? Is it really that hard to compile this type of bi-thing with VS?
I really want to continue with my handmade_clone!
Thank you all!
PD. Sorry about my english.. I hope I made myself clear. And thanks again!