Search:

Type: Posts; User: spacecadet23

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,100

    I should have said : "If there is insufficient...

    I should have said :

    "If there is insufficient memory for the allocation request, by default operator new returns NULL"

    Is from MSDN for Visual Studio 6
  2. Replies
    9
    Views
    1,100

    Straight from MSDN : "If there is insufficient...

    Straight from MSDN :

    "If there is insufficient memory for the allocation request, by default operator new returns NULL. You can change this default behavior by writing a custom exception-handling...
  3. Replies
    9
    Views
    1,100

    does it need brackets around a switch statement?...

    does it need brackets around a switch statement? i always just use:
    switch(var) {
    default:
    case 1:
    break;
    }

    This always works fine for me. i though the case and break keywords...
  4. Replies
    8
    Views
    2,069

    Try CxImage Libraries It's a bit of a pain the...

    Try CxImage Libraries

    It's a bit of a pain the include in your project but once you have it's very straight forward.
    It allows you load bmps,jpegs,gifs etc... rotate, crop, resize... and then...
  5. Replies
    2
    Views
    4,547

    Direct3D and MFC/CView HWnd

    Hey,

    I've got an SDI MFC application that initialises a Direct3D Device inside one of the View Classes.
    CApp >> CMainFrame >> CView >> DirectX

    I'm also using the basic View switching model(no...
  6. Replies
    41
    Views
    5,401

    Hey I'm probably gonna get slated for saying...

    Hey

    I'm probably gonna get slated for saying this but...

    The MFC framework makes basic graphic drawing very simple.



    // Draw a line
    pDC->MoveTo( x, y );
  7. Replies
    0
    Views
    3,178

    MFC Mouse Events

    Hey,
    To get the logical coords of a mouse click in a veiw class i have ended up creating a new DC and duplicting the OnDraw() setup

    Is there an easier way??


    //...
  8. Replies
    3
    Views
    1,475

    the code you have is way too simplistic. avoid...

    the code you have is way too simplistic. avoid using static values (like 1000) make everything variables from the start.
    Initialise all variables when they are declared (or at least before you use...
  9. Replies
    3
    Views
    1,800

    maybe i'm missing something but couldn'y you just...

    maybe i'm missing something but couldn'y you just do



    if (number==1) {
    system("cls");
    cout <<"WASHING" <<endl <<endl;

    int result = main2();
    }
  10. Replies
    4
    Views
    2,578

    Thanks for the link, i'll need to read through...

    Thanks for the link, i'll need to read through it properly in the morning.



    That's what i though at first but after doing some investigation that part of the code is suprisingly quick.
    The...
  11. Replies
    9
    Views
    934

    Declare the enum and an array of double (or...

    Declare the enum and an array of double (or float) values....



    enum {
    one,
    two,
    three,
    }
  12. Replies
    4
    Views
    2,578

    hey, The code goes through several loops,...

    hey,

    The code goes through several loops, reading from the file, rewinding, reading again - to me most of this seems totally unnecessary but it sets up several variables in the process, including...
  13. Replies
    4
    Views
    2,578

    BSP Tree ??

    Hey,

    I've got a (very) messy bit of code that was originally written in watcom c++ and compiled as a 32bit dos protected mode exe using dos4gw extender.

    It basically takes a list of lines from...
Results 1 to 13 of 13