CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2010
    Posts
    907

    win32 event programming (Event interface)

    Don't know if it's similar to ordinary C++ programs.
    But where can get me started?
    Thanks
    Jack

  2. #2
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: win32 event programming (Event interface)

    By "events" do you mean "signals"? If so, you could look into the sigc++ programming API. It's really designed for Linux but with a suitable compiler (Cygwin or MinGW) you can build it for Windows. It can also be built using MSVC if you're prepared to persevere.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  3. #3
    Join Date
    Dec 2010
    Posts
    907

    Re: win32 event programming (Event interface)

    I mean things I've seen in some text books. Vaguely OnRender, OnUpdate etc
    I need a complete starter guide which is rare now on the net

  4. #4
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,835

    Re: win32 event programming (Event interface)

    You're probably thinking of message handlers - in which case, no, they're not similar to non-Windows programs which tend to use signals and slots for the same purpose. Messages and signals are superficially similar but they don't really work the same way.

    Quote Originally Posted by lucky6969b View Post
    I mean things I've seen in some text books.
    Other people may differ but in my view, a good text book is worth its weight in gold. I know they can be expensive but they'll last you a long time and if you're teaching yourself, text books are easily the quickest way to learn, in my experience. Most of the better books come with sample code that you can experiment with. Most good bookshops will have "Teach Yourself" books that you can browse through so it's easy to find one that suits you.
    "A problem well stated is a problem half solved.” - Charles F. Kettering

  5. #5
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: win32 event programming (Event interface)

    There are tens of books and tutorials that can help you to learn Windows programming basics, including message handling.
    Here is just a brief list:
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: win32 event programming (Event interface)

    Quote Originally Posted by lucky6969b View Post
    I mean things I've seen in some text books. Vaguely OnRender, OnUpdate etc
    Vaguely indeed. This might be anything, Java, Delphi, C#, whatever.
    Best regards,
    Igor

  7. #7
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,234

    Re: win32 event programming (Event interface)

    Quote Originally Posted by Igor Vartanov View Post
    Vaguely indeed. This might be anything, Java, Delphi, C#, whatever.
    Vaguely including that a (C/C++) message handler can be named according to what our muscles wants: OnPaint, OnRender, OnDraw, Draw, whatever else.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured