Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: LarryChen

Page 1 of 41 1 2 3 4

Search: Search took 0.03 seconds.

  1. If I run the same program twice under linux

    what section would be shared in the memory? Thanks.
  2. Please help me understand optimistic locking and Pessimistic locking

    I read the documents about them but couldn't really understand them. Could any database guru here explain what they are in examples. Thanks a lot!
  3. Replies
    10
    Views
    453

    Re: A question regarding stack size

    So my understanding is that for each function call in the recursion, 4 bytes are needed for node*, 4 bytes are needed for returned address. But what about stack frame? Do we need stack frame for each...
  4. Replies
    2
    Views
    186

    Find n words given m threads

    I came across this question, You are given a paragraph , which contain n number of words, you are given m threads. What you need to do is , each thread should print one word and give the control to...
  5. A question from the book "More effective C++".

    In this book, item 3 is about never treat arrays polymorphically. In the latter part of this item, the author talks about the result of deleting an array of derived class objects through a base class...
  6. Re: Can one constructor of a class call another constructor of the same class

    Let me explain it by an example,



    class A
    {
    public:
    A(int x, char c);
    A(int x);
    void foo();
  7. Re: Can one constructor of a class call another constructor of the same class

    I got it. Thanks a lot. So should I say the temporary object by A(1, 'c') in my case doesn't change the pointer 'this'?
  8. Re: Can one constructor of a class call another constructor of the same class

    Here is my code,


    class A
    {
    public:
    A(int x, char c);
    A(int x);

    private:
  9. Re: Can one constructor of a class call another constructor of the same class

    Thanks for your reply. I don't quite understand "It doesn't 'call' the function A as A is a class name not a function name.". If you debug, you will find A(1, 'c') within the constructor A(int x)...
  10. Can one constructor of a class call another constructor of the same class

    to initialize this object? Why C++ FAQ says no? Here is my code,


    class A
    {
    public:
    A(int x, char c);
    A(int x);

    };
  11. Replies
    10
    Views
    453

    Re: A question regarding stack size

    Thanks for your reply. Let's assume I am working on an 32-bit machine. I have a couple of questions here. Since my function doesn't return any value, why'd I need 4 bytes for the return address?...
  12. Replies
    10
    Views
    453

    A question regarding stack size

    Suppose we want to read a linked list backward. The implementation using recursion is very simple,


    void ReadBack(node* head)
    {
    if(head)
    {
    ReadBack(head->next);
    printf("%d\n",...
  13. Re: A question regarding multiple inheritance

    So if we have another D3, D1 and D2 is virtually inherited from Base and D3 is non-virtually inherited from Base, then in this case there will be two copies of Base in DD instead of one or three....
  14. Re: A question regarding multiple inheritance

    It won't give any warn when mixed virtual/non-virtual inheritance of the same base is found. I had this question because I forgot a virtual to one of D1 and D2 when they are inherited from Base. What...
  15. A question regarding multiple inheritance

    As we know one of the ways that we solve multiple inheritance is using diamond shape like this,


    class Base
    {
    public:
    Base()
    {
    cout<<"Base"<<endl;
    }
  16. Replies
    1
    Views
    383

    A question regarding clustered index

    According to the definition of clustered index, a clustered index is a special type of index that reorders the way records in the table are physically stored. It seems clustered index reorders...
  17. Re: How to use TextOut without processing WM_PAINT?

    Actually the tough part is that I can't access message processing in main window. As the result, in order to process WM_PAINT for child window, I have to process it in another thread. Since child...
  18. Re: How to use TextOut without processing WM_PAINT?

    Yes, my child window IS a modeless dialog. What do you mean "your child window messages even being processed in other thread"? What is exactly "other thread" here? Basically I have two threads. One...
  19. Re: How to use TextOut without processing WM_PAINT?

    If child window messages are processed in the main thread, it will block parent window messages. As the result, parent window will hang there. Thanks.
  20. Re: How to use TextOut without processing WM_PAINT?

    Because parent window belongs to the main thread and for some reasons I can't access the parent window message processing. So in order to process child window message, I have to have sub thread to...
  21. Re: How to use TextOut without processing WM_PAINT?

    Ok, I have a parent window and a child window. The parent window belongs to the main thread and the child window belongs to a sub thread. The window messages in topic are processed in the sub...
  22. Re: How to use TextOut without processing WM_PAINT?

    May I ask why window message processing should be performed in the main UI thread? What kind of problems I might run into if I choose not to process messages in main thread? Thanks
  23. Re: How to use TextOut without processing WM_PAINT?

    Basically window message processing is put in another thread. So if I put the drawing job(for example, TextOut) in WM_PAINT, the main thread won't be very responsive since WM_PAINT is processed very...
  24. Re: How to use TextOut without processing WM_PAINT?

    I thought I already explained to you... Yes, initially I thought I can make use of WM_INITDIALOG or WM_SHOWWINDOW to draw text and then I realized that is not the way to go. I already forget the...
  25. Re: How to use TextOut without processing WM_PAINT?

    Check this out. https://msdn.microsoft.com/en-us/library/windows/desktop/dd162492(v=vs.85).aspx
    I just don't know exactly how to do that. Any ideas? Thanks.
Results 1 to 25 of 1008
Page 1 of 41 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center