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

Search:

Type: Posts; User: VladimirF

Page 1 of 80 1 2 3 4

Search: Search took 0.11 seconds.

  1. Re: global char type array initializing problem

    Where did you learn this "creative" technique?
  2. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    This, unfortunately, will fail if you manage to post two or more messages before your window proc will get to process them.
  3. Re: Modal dialog unexpectedly becomes non-modal

    You are welcome. Glad my crystal ball still works :)
  4. Re: Modal dialog unexpectedly becomes non-modal

    I respectfully disagree. In fact, I made a short demo yesterday to prove it:
    Simple MFC SDI app, modal About dialog creates modeless secondary dialog. If you set the main app window as the parent of...
  5. Replies
    7
    Views
    390

    Re: File opening and closing after 24 hours

    It most certainly is not the same strange :) The stated 24hrs periodicity implies correlation with date.


    Agree with everything. As was suggested above, most decent logging libraries include...
  6. Replies
    8
    Views
    272

    Re: Problems With EnableWindow()

    You got it. Just some minor corrections:
    - EnableWindow() is not a posted message, it is processed immediately;
    - all messages will be processed by the main window's WindowProc; I use "eat message"...
  7. Replies
    8
    Views
    272

    Re: Problems With EnableWindow()

    You are welcome, but I'm not too proud of that :)

    If your processing involves some kind of a loop, I would move that message pump into that loop; that would make your app responsive.
  8. Replies
    7
    Views
    390

    Re: File opening and closing after 24 hours

    The requirement to close the log "after the 24 hrs from the time the file is opened" is strange. I would suggest to close it (and create a new one) at midnight, so that the file name actually matches...
  9. Replies
    8
    Views
    272

    Re: Problems With EnableWindow()

    You could disable all controls right where you do it, then start a worker thread for your processing; when it is done - post some message to your main window and re-enable controls in that message...
  10. Replies
    8
    Views
    272

    Re: Problems With EnableWindow()

    This comes up very often.
    You are performing your task on the main UI thread. NO MESSAGES are processed until you return from your Window proc. In fact, your disabling/enabling of the child windows...
  11. Re: Modal dialog unexpectedly becomes non-modal

    The reason, most likely, is the wrong parenting of that modeless dialog. Since your code doesn't show how you specify the parent, I assume that you don't. The default is likely your main window,...
  12. Replies
    9
    Views
    342

    Re: Problem deleting HBITMAP object

    I am pretty sure CBitmap's destructor will take care of that.
    You can make sure by stepping into its code from your Dialog's destructor.

    [updated]
    From CBitmap::LoadBitmap
  13. Replies
    9
    Views
    342

    Re: Problem deleting HBITMAP object

    1. I suspect the ASSERT is not on the lines you indicated, but on the previous ones with LoadBitmap().
    2. CBitmap, most likely, asserts to indicate that there is a bitmap already loaded into that...
  14. Re: How to define a name range with Excel Automation

    Long Pointer to IDispatch COM interface.
    You can use ComQIPtr class to convert it to Name if you need to.
  15. Re: How to define a name range with Excel Automation

    I would love to help, but I don't know what are these CXL... classes. And neither does Google :)
    However, you may use trial-and-error method to figure it out.
    Please see Names Object (Excel) - can...
  16. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    This is a cool idea (and a great simplification from Codeplug)! Unfortunately CodeGuru doesn't let me rate either of you guys :)

    Quick question: don't you get an error:
    error C2662: 'BOOL...
  17. Replies
    15
    Views
    423

    Re: Weird "bug" with CStatic controls

    Glad it worked.


    Well, some might think that trying to double-click static control to get some action out of it is also not very intuitive.
    However, did you know that a simple message box like...
  18. Re: How to define a name range with Excel Automation

    Does your CXLWorkbook have something like Names?
  19. Replies
    15
    Views
    423

    Re: Weird "bug" with CStatic controls

    Interesting. The subclassing and handling WM_LBUTTONDBLCLK message (without calling base class' CStatic::OnLButtonDblClk(nFlags, point);) works fine for me.
    The copy obviously happens in CStatic...
  20. Re: WM_KEYDOWN Not Working with Multiple Keys

    Really? That doesn't sound right. In fact, I did the suggested test (pressing E, C and U keys in the Notepad) and got all the characters OK, as expected.
    The article explains how the keyboard "might...
  21. Replies
    8
    Views
    498

    Re: add to listbox thread

    I would agree with you, 100%. Kinda… If we were comparing these two scenarios:

    char* buffer = new char[some_length];
    sprint_s(…);
    and

    CString str;
    Str.Format(…);

    Mainly for two reasons:...
  22. Replies
    8
    Views
    498

    Re: add to listbox thread

    Your "magic" with HWND was already commented on.

    You start with char* in your Dump(), and you need LPCTSTR for m_listbox.AddString(); wrapping it into CString just to attach to a message is...
  23. FeinSoftware released FeinWindows version 2.0

    FeinSoftware presents FeinWindows version 2.0 - replacement windows manager for Microsoft Visual Studio 2012 and 2013.

    Please visit http://www.FeinSoftware.com/FeinWindows for more details.
  24. Re: MFC Proper usage of sending message to dialog to activate

    That function would have to be called from the UI thread only - right?
  25. FeinSoftware re-opened its forum and Facebook page

    I invite your question, comments, suggestions, requests for other tools for Visual Studio, etc.

    Please visit my forum at www.feinsoftware.com/FeinForum and my page at www.facebook.com/feinsoftware
Results 1 to 25 of 2000
Page 1 of 80 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