CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2009
    Posts
    10

    Events? Or, How to tell if one is offline

    Hi,

    I was wondering if there are something like events in VC++. For example, I'd like to be able to execute a function once my device becomes disconected/offline, and execute a different function once the device is online again. I'm programming on Windows Mobile.

    I'm sorry if this is an obvious question, I'm new to VC++

    Thank you!

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Events? Or, How to tell if one is offline

    Yes, there is native support for events, which is implemented by __event keyword in VC++. AFAIK, anyone doesn' use them and I don't recommend you to try.
    Good old callback functions or using Windows events (CreateEvent) is the way to do this.

  3. #3
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Events? Or, How to tell if one is offline

    Windows has a lot of possibilities for events... the question is . . can your device give a signal when it goes offline.

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