Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

121 Neutral

About Portmanteau

  • Rank
  1. I have used Suse, Ubuntu, Arch, Debian, and Gentoo. I always end up coming back to Debian though. To be specific Debian Testing is what I run on my Desktop and EEE PC. On my server I run Debian Stable. I usually do the base system and install what I need from there manually. My window manager preferences go OpenBox, XFCE, Gnome, then KDE so that might explain some of it.
  2. Portmanteau

    Static objects

    It is not thread-safe.
  3. Looks like the spaces are not being escaped for some reason, usually you either use a \ or just put the file name in quotes. What is happening is that g++ sees C:\Documents and Settings\Brian Davidson\Desktop\c2k\hello.cpp as g++ "C:\Documents" "and" "Settings\Brian" "Davidson\Desktop\c2k\hello.cpp" Sorry, I do not know how to fix it.
  4. There are [ source ] tags. Also, in your properties you need to also link to the lua library in your release configuration, not just the debug configuration.
  5. Portmanteau

    Class distructor never Invoked :S

    If you have allocated the memory for the object on the heap, used new, then you will need to delete it and at that point it will call the destructor. Otherwise if the object is on the stack the destructor will be called when it goes out of scope. The other issue has to do with declaring base class destructors virtual. class GoodBase { public: virtual ~BaseA() { } }; class BadBase { public: BaseB() { } }; Any class that inherits from BadBase will never have their destructors called, GoodBase on the other hand is good to go. You should always* declare the destructor of a class you intend to inherit from as virtual. *Of course there are always edge cases, and cases where this is untrue, but I cannot think of any.
  6. Portmanteau

    writing in memory of another application

    Yeah just send messages to the window.
  7. Portmanteau

    My first (C++ & SDL) Linux Game!

    Oh I haven't run a Windows machine, except when required at school and work, since we support Windows, for a few years. I have a Macbook Pro which I dual boot with Ubuntu, my desktop is Debian testing/unstable, and my server is Debian stable. But I have yet to see anything that Linux does better than Windows, seeing as most(if not all) development libraries and applications are available on Windows as well. The only exception I can really think of is kernel development, which is one of my main reasons for the full switch to Linux, I couldn't imagine trying to compile the kernel in Windows, maybe in Cygwin, maybe... I was just wondering if there was some miraculous Linux development secret out there I had yet to discover.
  8. Portmanteau

    My first (C++ & SDL) Linux Game!

    Quote: sorry LINUX is much easier to program for I am curious as to your reasoning.
  9. Portmanteau

    Gamer Question

    I am going to be honest with you, when I read your post I expected to look and see that you were from a non-English speaking country, only to find you were from Oregon. Come on, were you just not trying at all, or did you lie about being in high school and you are really 4? Anyways, sure a game like Runescape is possible, no it is not illegal if you do not steal any of their assets or content. At the time Java is your only really option for making interactive, and 3D, browser based games. Good luck! Be warned though, RPGs are the hardest type of game to create.
  10. Portmanteau

    System Core class

    It will have to be static, then you will want to put a pointer to your class inside of the GWLP_USERDATA memory of your window with SetWindowPtrLong function, then get it back out with GetWindowPtrLong.
  11. Portmanteau

    Alternatives to the console?

    You can look into the curses libraries, pdcurses on Windows and ncurses on Linux. They keep you in the console, but give you a lot more control. Alternatively you can look into some simple UI work with libraries like GTK+, wxWidgets, and QT 4. EDIT: You can also use ANSI escape codes.
  12. Portmanteau

    Problem with a book I bought...

    You guys are talking about two different things, the topic creator is talking about Visual Basic, you are talking about Visual C++. From what I have heard, and seen, Visual Basic 6.0 and Visual Basic .NET are completely different languages. Hardly compatible at all. I would get my money back if I were you. EDIT: The reason why is that Visual Basic 6.0 is basically dead, no one really uses it, Visual Basic .NET is that much better.
  13. Portmanteau

    GLFW Callback Trouble

    They do not need to be in the global namespace, the compiler just needs to know their location on compile time. That means they will have to be static functions within the class, usually callbacks over a void* to pass the class in, like this. class MyClass { public: static void myCallback(void*); private: void myCallback(); }; void MyClass::myCallback(void* data) { MyClass* my_class = reinterpret_cast<MyClas*>(data); my_class->myCallback(); } I do not really know what GLFW offers though.
  14. Portmanteau

    enumerating files on linux, readdir?

    You will probably want to look into sys/stat.h I will be honest with you, I have never used it before, but it looks like the Posix way to do it. You can also try the less pretty, probably slower, slightly hacky, standard C way. long int getFileSize(const char * filename) { FILE * fp = NULL; long int file_size = 0; fp = fopen(filename, 'rb'); fseek(fp, 0, SEEK_END); file_size = ftell(fp); fclose(fp); return file_size; } Heh, I think that will work :/ I would go the file stat way.
  15. Portmanteau

    Visual C++ 2005

    Inline function definitions need to be in the header file.
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!