Menu

Wondering if code from a dif compiler works

Eric
2008-08-26
2012-09-26
  • Eric

    Eric - 2008-08-26

    I really am liking dev-c++ but the tutorial i found uses microsoft visual studio 2003 and i was wondering if there was a way to easily transfer the code from that to dev-c++

    the tutorial i am using is found here. http://www.rdxgames.net/projects/wrathlands/index.html

    if you go to that link you can download the source code. I tried using the source code in C++ but I get errors. If anyone knows of source code that I can learn off of and works with Dev-C++ or knows how to get the tutorial I posted above working it would be much appreciated.

    thanks

     
    • cpns

      cpns - 2008-08-26

      I suggest using extreme caution when using 'tutorial' material from the Web. Much of it is poor quality produced by well meaning but generally inexperienced people who know far less than they think. The very 'disclaimer' at the head of that link should ring alarm bells from the start.

      I just took a quick look at the 'part 11' source (I wonder why it takes till part 11 before you get any source!), and it seems like fairly straightforward C++ code, although the author does not seem to have decided yet if he is writing OO or procedural code. He is also promoting some nasty habits, such as collecting all the headers into one "libraries.h" header and declaring "using namespace std;" in the header.

      I would suggest that you steer well clear of this code until are in a better position to distinguish the good from the bad.

      If you have some compelling reason to use this code - if you are interetsted in teh game itself for example - then post the build log from your attempt to build it, we can help you from there.

      Note that this project uses multiple sources, the project files are for VC++ so you cannot use them. You must at least have created a project in Dev-C++ and added all the sources to it.

      An easier path would be to use Microsoft's Free VC++ 2008 Exress Edition. To be honest, since it has a working debugger, it is probably a better learning tool in any case.

      With respect to better quality learning resources I suggest:

      http://www.cplusplus.com/doc/tutorial/
      http://www.cprogramming.com/tutorial.html
      http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.