Receiving Microsoft Virtual Server events from a managed program
Tuesday, January 31, 2006
| 0 Comments
|
Ben Armstrong continues his Virtual Server development series, this time explaining how to handle events from a managed application:
- Setup the managed application appropriately to talk to the Virtual Server COM interfaces
- Declare your Virtual Server COM object 'WithEvents' as follows:
- Create a subroutine to catch the event:
Private WithEvents virtualServer As VMVirtualServer = Nothinginstead of:
Private virtualServer As VMVirtualServer = Nothing
Public Sub virtualServer_EventLogged(ByVal logMessageID As Integer) Handles virtualServer.OnEventLogged 'Do something with the event msgbox(CStr(logMessageID)) End Sub
© 2003-2008 virtualization.info
Sitemap
Sitemap


Comments
Post a new comment