Search:

Type: Posts; User: erikj

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    6,459

    Text from msdn...

    Text from msdn

    This function is obsolete.

    Remarks
    To set the background color of the dialog box, you must handle WM_CTLCOLOR. This message changes the color of the specified dialog box only.
  2. http://publications.gbdirect.co.uk/c_book/chapter9...

    http://publications.gbdirect.co.uk/c_book/chapter9/stdarg.html
  3. Replies
    10
    Views
    1,193

    Can you post a screenshot of what you mean?

    Can you post a screenshot of what you mean?
  4. Replies
    2
    Views
    910

    You have two options. Create a Tree on the stack...

    You have two options. Create a Tree on the stack or on the heap.

    On the stack: Tree tree(num, let);
    On the heap: Tree *tree = new Tree(num, let);

    You are trying to do a mix of it =)
  5. Replies
    3
    Views
    1,490

    You must only use CPaintDC inside OnPaint. If you...

    You must only use CPaintDC inside OnPaint. If you want to draw in another function use CClientDC.

    CClientDC dc(this);

    dc.MoveTo(0,0);
    dc.LineTo(100, 100);
  6. Replies
    3
    Views
    1,490

    What do you mean by "to be CPaintDC", do you want...

    What do you mean by "to be CPaintDC", do you want only a part of the dialog to be repainted? CPaintDC is used in OnPaint to get a handle to the CDC. Please clarify =)
  7. Replies
    3
    Views
    1,679

    Im not sure if i understand problem #1 correct....

    Im not sure if i understand problem #1 correct. But couldnt you check the mouse pos in WM_CONTEXTMENU and if the mouse is over the workspace show the popupmenu, or else send it to DefaultWindowProc
  8. Replies
    6
    Views
    1,130

    Sure, but it looks less cluttered ;)

    Sure, but it looks less cluttered ;)
  9. Replies
    6
    Views
    1,130

    It should be OPTIMAL_VAL - THRESHOLD_VAL

    It should be


    OPTIMAL_VAL - THRESHOLD_VAL <= iA && iA <= OPTIMAL_VAL + THRESHOLD_VAL

    not


    OPTIMAL_VAL - THRESHOLD_VAL >= iA && iA <= OPTIMAL_VAL + THRESHOLD_VAL
  10. Replies
    7
    Views
    1,112

    Works fine for me. Where did you call the...

    Works fine for me. Where did you call the function?
  11. Replies
    9
    Views
    1,579

    Strange, does this work? #include...

    Strange, does this work?




    #include <iostream>
    #include <iomanip>
    using namespace std;

    int main(int argc, char* argv[])
  12. Replies
    2
    Views
    1,279

    Yes it is an array of integers. Writing:...

    Yes it is an array of integers.

    Writing: user_request var;

    will be equal to: int var[BUFFER_SIZE];
  13. Replies
    9
    Views
    1,579

    Use fixed before setprecision. cout...

    Use fixed before setprecision.

    cout <<fixed<<setprecision(2) << 1234.56789<<endl

    This will print 1234.56
  14. Thread: 5 Byte Integer

    by erikj
    Replies
    11
    Views
    9,655

    Maybe this will work char *p; char...

    Maybe this will work



    char *p;
    char buf[32];
    double dbl;

    fread( dbl, 1, sizeof(double), fp );
  15. Replies
    8
    Views
    1,337

    The only way not to change the original array and...

    The only way not to change the original array and not sending another parameter is to allocate memory for a new string and return that pointer.



    char *to_upper(char *array)
    {
    int len =...
  16. Replies
    20
    Views
    5,387

    Right click on the dialog and choose "Insert...

    Right click on the dialog and choose "Insert Active-X control". Choose "Microsoft Statusbar" from the list.
  17. Replies
    3
    Views
    1,705

    Sorry, but i dont think you can save a stl class...

    Sorry, but i dont think you can save a stl class like that. You have to iterate the deque and save every item.

    The class probably contains pointers, and thoose can be saved.
  18. Replies
    3
    Views
    1,705

    Assertion failure isnt a specific error, it can...

    Assertion failure isnt a specific error, it can be anything.
    Assertions is used to detect unvalid variable content.

    void add_to_list(Object *a)
    {
    // Make sure the object isnt NULL
    ...
  19. Thread: Linked List

    by erikj
    Replies
    5
    Views
    2,312

    Remove all LinkedList:: Only need them when you...

    Remove all LinkedList::
    Only need them when you implement the functions outside the class.

    Line 19:
    add void beforeb deleteLL()

    line 97:
    delete is a keyword, not a valid function name.....
  20. Thread: macros

    by erikj
    Replies
    5
    Views
    2,167

    remove spaces before the first ( #define...

    remove spaces before the first (

    #define IND_BIT (N) ((N) / NUM_BITS)

    =>

    #define IND_BIT(N) ((N) / NUM_BITS)
  21. Replies
    3
    Views
    1,608

    I'm not sure what you don't understand but.. ...

    I'm not sure what you don't understand but..

    if (++arr[n-1]>n)

    ++ has higher precedance then > so it get executed first.

    You can see it like this

    arr[n-1] = arr[n-1] + 1;
  22. Replies
    3
    Views
    1,608

    if (++arr[n-1]>n) ++ is the prefix operator...

    if (++arr[n-1]>n)

    ++ is the prefix operator for addition

    before arr[n-1]>n is evaluated ++arr[n-1] is executed and it increases arr[n-1] with 1.

    Take a look at this link...
  23. Replies
    2
    Views
    2,069

    change DDX_Control(pDX, IDC_EDIT1, m_string); ...

    change DDX_Control(pDX, IDC_EDIT1, m_string);

    to

    DDX_Control(pDX, IDC_EDIT1, m_Edit);

    in

    signGUIDlg.cpp
  24. Replies
    7
    Views
    1,339

    Personally i think "Programming windows with MFC,...

    Personally i think "Programming windows with MFC, 2nd edition" is really good.

    Many MFC books use the appwizard from chapter 1 and its hard to grasp the inner workings of MFC. But this book is...
  25. Replies
    3
    Views
    1,491

    http://msdn.microsoft.com/library/default.asp?url=...

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/WinUI/WindowsUserInterface/UserInput/KeyboardInput/KeyboardInputReference/KeyboardInputFunctions/RegisterHotKey.asp

    BOOL...
Results 1 to 25 of 62
Page 1 of 3 1 2 3