Microsoft DirectX 8.0 (Visual Basic) |
Registers an entry point in the client's code that receives the messages from the DirectPlay8Client object and from the server. This method must be called before calling any other methods of this class.
RegisterMessageHandler(event As DirectPlay8Event)
If the method fails, Err.Number can be set to the following value.
DPNERR_ALREADYREGISTERED |
If you want to register a new message handler, you must first call DirectPlay8Client.UnRegisterMessageHandler to unregister the current message handler.