Search:

Type: Posts; User: sh0x

Search: Search took 0.01 seconds.

  1. More information

    Some more information on the problem:

    It's not that only one of the bobPopUp objects are appearing, it's that all 5 are appearing in the same position. Take a look at the log excerpt below (only...
  2. Problems with derived classes, copy constructors, *lots of example source included*

    DISCLAIMER: If you are going to read this code to learn from it, I should warn you you might pick up some bad habits. :) Furthermore, the "game" this source comprises is a sandbox. It has few rules,...
  3. Replies
    5
    Views
    1,944

    I did try this and I don't like the way it works....

    I did try this and I don't like the way it works. It does work if I don't call the GetInstanceType() parameter in the constructor, but the problem is that I do need to know what type the instance is...
  4. Replies
    18
    Views
    5,761

    The Enterprise Edition is the most expensive...

    The Enterprise Edition is the most expensive version of VC++ there is. It's intended for just that; the Enterprise. There are a couple of editions between the Home and Enterprise versions that are...
  5. Replies
    18
    Views
    5,761

    Re: what's a good compiler for games?

    Windows Games with DirectX? Visual C++ 6, no question.

    Windows Games with OpenGL? Visual C++6 most likely

    DOS games? DJGPP. This "Vesa 1-3" mentioned is a DOS standard, which is why it won't...
  6. Replies
    12
    Views
    2,097

    The source we got from download.com is not the...

    The source we got from download.com is not the original DOS version, it has been updated for Windows and even comes with a Visual C++ .DSP and .DSW in the source package. According to the...
  7. Replies
    12
    Views
    2,097

    Re: Has anyone done a mod to a game before?

    Did you get it to compile? I'm having problems getting MASM to do its thing. I'm using Visual C++ 6.0 and I installed MASM32 in C:\MASM32 and added C:\MASM32\BIN to my path, but when ML is called to...
  8. Replies
    5
    Views
    1,944

    So how can I solve this problem? The Base class'...

    So how can I solve this problem? The Base class' constructor is always called after the Derived class' constructor when a Derived class is instantiated, right? And just because the constructor for...
  9. Replies
    5
    Views
    1,944

    Troubles overriding a const in a derived class

    I have a Base class and a Derived class, only the parts of the class in question are listed for brevity:


    class Base
    {
    public:
    static const int type;

    Base (int x=0, int y=0);
    ~Base();
  10. Thread: C++

    by sh0x
    Replies
    2
    Views
    895

    is for the c standard of i/o, and...

    <stdio.h> is for the c standard of i/o, and includes functions such as scanf and prinf
    <iostream> is for the c++ standard of i/o, and includes functions such as cin and cout

    Furthermore,...
  11. Thread: help with ....

    by sh0x
    Replies
    4
    Views
    1,163

    Sami, When you are dealing with the new and...

    Sami,

    When you are dealing with the new and delete functions, you are allocating and deallocating memory from the heap. If you get any deeper into using new and delete you will definitely want...
  12. Replies
    5
    Views
    1,682

    CumQuaT, you might want to take a look at a book...

    CumQuaT, you might want to take a look at a book called Windows Game Programming for Dummies by Andre Lamothe. The title of the book is a misnomer, it's a pretty good book. It spends a couple of...
  13. Thread: Compiler

    by sh0x
    Replies
    4
    Views
    1,104

    If you want to do graphics in Windows (I'm...

    If you want to do graphics in Windows (I'm assuming you do) then you might want to try using Visual C++, and get a book on DirectX programming. You can also do graphics with the Windows GDI but this...
  14. Actually my array size is 100 (0-99), and I only...

    Actually my array size is 100 (0-99), and I only wanted to copy arbitary class instances one at a time, but I found your answer regarding overloading the = operator and avoiding memory leaks very...
  15. Please clarify

    So what you're saying is, if after declaring the array of pointers and creating two instances of the class using the new keyword, one in *templates[50], and one in *pointers[50], if I use the...
  16. Array of pointers for dynamically allocating class instances

    I'm using an array of pointers to dynamically allocate class instances of a class and it's derived classes. I'm doing great so far, except when I have to copy an object. I'm getting bugs in my...
  17. Replies
    3
    Views
    2,542

    You said: "Can anyone explain to me how to use...

    You said:

    "Can anyone explain to me how to use extern? I've seen it used all over, but I can't understand how to link a file and how to use it. If you can explain that, can you also explain how to...
Results 1 to 17 of 17