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

  1. 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...
  2. Replies
    15
    Views
    608

    Re: Database Backup Using VC++

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

    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.
  4. 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"));
    ...
  5. 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...
  6. 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.
    ...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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.
  14. 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!
  15. 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... :)
  16. 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...
  17. Replies
    15
    Views
    608

    Re: Database Backup Using VC++

    Have a look with a little bit more attention at _spawnl, _wspawnl documentation.
  18. 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.
    ...
  19. Replies
    11
    Views
    417

    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. :)
  20. 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!
  21. Replies
    9
    Views
    345

    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...
  22. Replies
    9
    Views
    345

    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.
  23. Replies
    9
    Views
    345

    Re: Problem deleting HBITMAP object

    That's one reason why MFC has been invented. :)
  24. Re: Getting exceptions on Windows 7 and Windows 8 on different parts of the Code

    Some functions may be deprecated in newer OS versions, some other ones may be not supported by older OS versions. And, some functions may have other behavior on different OS versions. And, your...
  25. Re: VC++ 6.0 & Localizatioin. What do I gain with Unicode?

    One nice additional note:
    Japanese code page 932 maps the same code (0x5C) for backslash and Yen sign.
    That was a source of troubles in a legacy application, when dealing with file paths.
    After...
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