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.67 seconds.

  1. Replies
    3
    Views
    268

    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...
  2. Replies
    43
    Views
    1,962

    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...
  3. 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...
  4. 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...
  5. Replies
    15
    Views
    767

    Re: Database Backup Using VC++

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

    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.
  7. 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"));
    ...
  8. 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...
  9. 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.
    ...
  10. 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...
  11. 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...
  12. 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...
  13. Re: MFC click event don't work between a parent and subclass in a web control

    MFC does not use multiple inheritance and it's good to also use simple inheritance when write MFC applications.
    It has no much sense to derive both from CWnd (which keeps a window) and and a class...
  14. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Right, and I knew that. Although it's hard to believe that somebody can have the idea to write something like that (I discovered it just doing tests to find a solution), let's think like an "good...
  15. Re: person::person(const person &)' : cannot convert parameter 1 from 'int' to 'const

    Beside what VictorN and GCDEF already answered.
    Fortunately, the newer compilers give a good hint about the forgotten semicolons.

    However, if it's still not clear at a first look, there's no...
  16. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Absolutely agree.
    However, the actual parameters can only (sic :)) serve to make a class member function behave 'differently', as well.
  17. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    That's the reason why I made the capture by value. NO need to be a rocket scientist in order to know what happens with local variables when go out of scope. ;)


    Please detail!
  18. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    Probably there are also other problems as long as we are trying to break the oldest but goodest "classic" way.
    Still digging and having fun... :)
  19. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    // Usually a class containing many small methods is more reliable than one with fewer but big methods. :)

    Well, let me try to improve a little bit my previous example.
    As I said above, conversion...
  20. Replies
    15
    Views
    767

    Re: Database Backup Using VC++

    Have a look with a little bit more attention at _spawnl, _wspawnl documentation.
  21. Re: MFC: PostMessage and Handling it without the hassle (and a question).

    In Visual Studio 2012 or newer, the stateless lambdas (with no lambda-capture) are convertible to function pointers.
    See Lambdas section in the following article: Support For C++11 Features.
    ...
  22. Replies
    11
    Views
    459

    Re: Custon control Library design

    Are you also looking for already made detailed implementation design, unit and functional tests?
    Probably, all can be found for free... in a parallel world. :)
  23. Re: Like MessageBox(..), is there an InputBox(..) ?

    Finally. someone discovered the cross-platform C/C++ InputBox, after about ten years of research. :)

    ---
    Please let old threads rest in peace!
  24. Replies
    9
    Views
    372

    Re: Problem deleting HBITMAP object

    That's normal, a button does not look in Windows 1.0 the same as in Windows 2000. :)
    Moreover, in newer Windows versions may look different if a different theme is set.
    However, if you want to...
  25. Replies
    9
    Views
    372

    Re: Problem deleting HBITMAP object

    ...and also it takes care of programmer. If the programmer tries to attach a handle while the CBitmap object already contains a valid one, it gives an ASSERT to avoid further resource leaks.
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