Search:

Type: Posts; User: phatslug

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    2,955

    now i have NO idea what else youre doing in your...

    now i have NO idea what else youre doing in your program
    but with me, usually when i get an error like that during delete,
    it means somewhere in the program i probly wrote past the end of the 256...
  2. Replies
    3
    Views
    1,218

    oh yes.. each member of an array can be pretty...

    oh yes.. each member of an array can be pretty much anything you want, like a struct a class, another array (which is what 2 dimentional arrays are)

    try this:


    struct Slot
    {
    int piece;
    int...
  3. Replies
    5
    Views
    1,296

    Youre right, the difference is completely...

    Youre right, the difference is completely insignificant
    but I was just wondering

    and out of curiosity, how do i make my compiler spit out ASM(thats MSVC++ for me).

    i learned ASM on my TI-83+...
  4. Replies
    5
    Views
    1,296

    Compiled If Statement

    which is faster, better, compiles into better code and such...



    bool function()
    {
    if (something) return true;
    return false;
    {
  5. Thread: Static vars

    by phatslug
    Replies
    1
    Views
    841

    Static vars

    Say I have a function runs a coupla 1000 times.
    Would it increase the speed if i declared the variables in that function as static and simply re-initialized their values myself every time?

    I...
  6. Replies
    1
    Views
    1,078

    ok, well just solved my problem for anyone who...

    ok, well just solved my problem
    for anyone who cares it should go something like this

    array = new CClass*[somenumber];
  7. Replies
    1
    Views
    1,078

    Arrays of Pointers

    Say I want an Array of Pointers to Classes. This is dynamic btw, so the size isnt always set.

    Shouldn't i do this???



    CClass** array;

    array = new int[someNumber];
  8. Replies
    1
    Views
    1,505

    Loading BMP to a DirectDrawSurface

    Does this code do it right???
    Im getting the surface but theres some wierd stuff in it, definitley no bitmap of mine.
    This isnt all my code so i dont quite understand parts of it, for example, the...
  9. Replies
    5
    Views
    1,429

    Right now, all I need is to update the screen a...

    Right now, all I need is to update the screen a few times every second, so I have a timer set to 250 milliseconds and the OnTimer code is simply:

    dsFront->Blt( NULL, dsBack, NULL, DDBLT_WAIT, NULL...
  10. Replies
    5
    Views
    1,429

    Does this code do it right? HRESULT r; r...

    Does this code do it right?

    HRESULT r;
    r = DirectDrawCreateEx (0,(void**)&ddMain,IID_IDirectDraw7,0);
    if FAILED(r) return false;

    r = ddMain->SetCooperativeLevel( m_hWnd,...
  11. Replies
    5
    Views
    1,429

    Windowed Mode Output

    Ive got an program using DirectDraw in a window. Everything initializes correctly, DD object, the front and back buffers, and clipper (All this is on the window's OnInitDialog).

    My question is...
  12. Thread: delete Error

    by phatslug
    Replies
    5
    Views
    1,316

    hmm... I couldnt readily give u more code without...

    hmm... I couldnt readily give u more code without pasting a coupla hundred lines. Ahh.. I probably screw up the heap somewhere else in the program and this is how it manifests itself.

    Also I...
  13. Thread: delete Error

    by phatslug
    Replies
    5
    Views
    1,316

    delete Error

    In a base class, i declare an integer pointer,

    int* cellDesc;

    Then, in the constructor of a derived class...

    cellDesc = new int[somenumber];

    and in the destructor of that derived class...
  14. Replies
    21
    Views
    3,331

    Are you perhaps thinking of zipping them? So...

    Are you perhaps thinking of zipping them?

    So however many files u have get compressed into one .zip file (which u can make into a self-extracting .exe). Then the user downloads your file and...
  15. Replies
    4
    Views
    1,177

    Hey thanks alot, worked pretty well. I have...

    Hey thanks alot, worked pretty well.

    I have another question now... is there some way so that when you call a overloaded method from a derived class, both that one and the base class' will be...
  16. Replies
    4
    Views
    1,177

    hmm.. Im not quite sure what you mean, sorry I'm...

    hmm.. Im not quite sure what you mean, sorry I'm sorta new to C++. From MSDN all i seem to gather is that subclassing only has to do with windows, like CWnd.

    I was thining that I would need to...
  17. Replies
    4
    Views
    1,177

    Classes and Derivation

    I've got an abstract class, CFractal, and two derived classes, CFractalMandel and CFractalJulia. I plan on adding several more in the future.

    Well, in my main app i have a pointer to a CFractal...
Results 1 to 17 of 17