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

Search:

Type: Posts; User: ovidiucucu

Page 1 of 80 1 2 3 4

Search: Search took 0.17 seconds.

  1. Re: does memory need to be released for dynamic controls

    Which is value of MAX_CONTROLS?
    12, 666. 65535, INT_MAX, something else?
  2. Re: does memory need to be released for dynamic controls

    C++ is neither Java, nor C#
    Once you dynamically allocated stuff like in your example

    ...there's no chance to release it other place than inside CChangeSettings::OnInitDialog.
  3. Re: does memory need to be released for dynamic controls

    Yes.

    No.

    Review your application design.
  4. Replies
    4
    Views
    277

    Re: New to VS 2012 and Lambada programming

    Beware! In your case the lambda call is asynchronous, so it's not OK to capture local variables by reference.
  5. Replies
    4
    Views
    277

    Re: New to VS 2012 and Lambada programming

    Let’s Write a “Hello Lambda!”
    It's intentionally made enough stupid, in order to explain lambdas at beginners level. :)
  6. Replies
    13
    Views
    513

    Re: SetCursorPos slowness

    [ off-topic ]

    Just for my curiosity: for which purpose are you using VTK in an MFC application?
  7. Replies
    13
    Views
    513

    Re: SetCursorPos slowness

    You are calling SetCursorPos inside WM_MOUSEMOVE message handler (OnMouseMove). If the cursor is inside the view's client area (or the view has captured the mouse) a new WM_MOUSEMOVE message is...
  8. Re: How to get the text of an "EDIT" control from another thread?

    Smoking few threads with a flavor of GUI can make you feel great but sooner or later may give nasty and painful headaches.
    In case of abuse, of course. :)

    [ later edit ]
    Never forget the KISS...
  9. Replies
    8
    Views
    473

    Re: Edit message map at startup

    @OReubens
    I'm pretty sure you already know but please let me explain to others: in C/C++ a macro is expanded/resolved at preprocessing time which is the very first phase of code compiling. Besides,...
  10. Replies
    8
    Views
    473

    Re: Edit message map at startup

    Of course it works. I never thought it doesn't... :)
  11. Replies
    8
    Views
    473

    Re: Edit message map at startup

    The shortest answer is: No.
    A little bit more elaborated: It is not possible to "edit the message map" at run-time as long it uses macros and the macros are expanded in the first compiler phase....
  12. Replies
    7
    Views
    498

    Re: MDI Application Client Window

    The MDI main frame may have in its clent area, aside with MDI Client window (of pre-defined window class "MDIClient"), other docked windows: a status bar, a ribbon bar, toolbars etc. The framework...
  13. Replies
    7
    Views
    498

    Re: MDI Application Client Window

    This picture shows who's the child of which parent in a classic MDI application.

    33491
  14. Replies
    3
    Views
    381

    Re: Repaint problem in custom control

    In your case you must not even call ScrollWindow but just move the child controls relative to parent's client area then invalidate.
    Alternatively, you can try derive the custom control from...
  15. Replies
    43
    Views
    2,388

    Re: Emptying CString

    [ off-topic ]

    I met a guy who recently ported a VC5 (VC5, not VC6) project to one of the latest VS versions.
    And I know that's a pretty big project because I worked on it, over a dozen years...
  16. Re: Auto-close MSG box - Without Button and Title

    I would like to suggest a more reliable method for customizing a message box:

    before calling ::MessageBox, set a CBT Hook.
    in the CBT hook procedure, catch the creation of the message box and...
  17. Re: atlsimpstr.h access violation error

    A: 99.999% yes, is a problem of improperly handling of CString
    You can simply reproduce this behavior writing the following simple code:


    CString* pString = new CString(_T("Geo luvs...
  18. Replies
    15
    Views
    977

    Re: Database Backup Using VC++

    A little bit aside: in which path runs your application?
  19. Replies
    10
    Views
    603

    Re: UTF-8 Conversion

    Just a hint:
    The Japanese codepage 932, maps the same ASCII code (0x5C) to backslash and Yen Sign (¥).
    See Code page 932and Windows Codepage: 932 (Japanese Shift-JIS) for more details.
  20. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    A programmer must never say "certainly" before testing.
    Try this...

    theApp.PostLambda([=]()
    {
    AfxMessageBox(_T("There was an old man of Five Rocks"));
    ...
  21. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Another reason why I said "I would like to use the first solution" is to avoid shuffling lambda calls in worker threads. I'm not sure if that matters but who knows... anytime a mighty architect may...
  22. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Indeed, the solution from previous example is not thread safe.
    So, to prevent calling CSomeApplication::PostLambda from a thread, other than main application's thread, we can simply use an ASSERT.
    ...
  23. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    To make possible multiple asynchronous lambda calls in the same message handler, one solution is to store them in a list.
    These having been said, my example from post #14 can be improved a little...
  24. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Sure.
    But if someone is a good developer and not only a good architect (:)), has no sweat to put an '=' sign in lambda capture list, instead of shooting a burst in the message queue, from a single...
  25. Re: MFC click event don't work between a parent and subclass in a web control

    I would like to suggest the following: instead of try handling OnCLick event in a HTML element, which may be pretty complicated, handle BeforeNavigate2 event in Web control, which is easy. Especial...
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