Search:

Type: Posts; User: digital dropout

Search: Search took 0.00 seconds.

  1. You could try puting a CRect around the box and...

    You could try puting a CRect around the box and use;

    CRect area(0,0,10,10) // where the coordinates are around
    the area you want the mouse to be clicked in

    area.PtInRect(pos)// where pos is...
  2. Replies
    12
    Views
    3,576

    You could just try overridding the...

    You could just try overridding the OnPrintScreen() or OnPreparePrinting() function in the Message_Map(), that is if you are using MFC, and put your code inside one of these functions.
  3. Replies
    11
    Views
    2,737

    Are you sure you have your database connected...

    Are you sure you have your database connected with ODBC?
  4. Basically, anything you put on the freestack with...

    Basically, anything you put on the freestack with the new operator is permanent until you delete it. This gives you the option of controling your own memory allocation. Concerning the dialog box...
  5. Replies
    3
    Views
    5,795

    you can use this: char *_ecvt( double value,...

    you can use this:
    char *_ecvt( double value, int count, int *dec, int *sign );

    example;

    int decimal, sign;
    int precision;
    if (mpg < 10000) precision = 5;
    if (mpg < 1000) precision = 4;
    if...
  6. Replies
    5
    Views
    2,052

    Well actually it speeds up data transfer; Cat...

    Well actually it speeds up data transfer;

    Cat fluffy; // An object.
    fluffy = new Cat; //actually creating the object on the heap

    and would be referenced by;

    Cat* tinkles = &fluffy;

    with...
  7. Replies
    4
    Views
    1,513

    Christine here are quick examples: //modeless...

    Christine here are quick examples:

    //modeless dialog box;

    mdlg = new CMajorDialogbox;//create a new CMajorDialogbox class on the heap

    mdlg->Create(IDD_MAJOR);...
  8. Replies
    1
    Views
    1,412

    Perhaps you should move: CToolBar mytoolbar; ...

    Perhaps you should move:

    CToolBar mytoolbar;

    into the header file. Seems to me when initdialog goes out of scope your "CToolBar mytoolbar" would too.

    Also if you are using the Resource...
Results 1 to 8 of 8