How To Use WaitForEvents and EndWaitForEvents in eVB (281113)
The information in this article applies to:
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q281113 SUMMARY
Formless projects support only the App object and the Err object. The App object provides two methods, WaitForEvents and EndWaitForEvents, to enable formless applications to process events. When you write event-driven code for a formless application, the procedure that calls WaitForEvents remains suspended until you call App.End or App.EndWaitForEvents. The App.EndWaitForEvents method immediately returns control to the next statement after the App.WaitForEvents statement. However, if your application is not waiting for events, you should use App.End instead of the App.EndWaitForEvents statement, which has no effect.
You can use the CreateObjectWithEvents function to create ActiveX controls that respond to events. CreateObjectWithEvents can only be used with non-graphical controls such as the Comm and WinSock controls.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbhowto KB281113 |
---|
|