Microsoft DirectX 8.0 (Visual Basic)

DirectPlay8Client.RegisterMessageHandler

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)

Parts

event
DirectPlay8Event object that will receive the messages generated by the client and server.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_ALREADYREGISTERED

Remarks

If you want to register a new message handler, you must first call DirectPlay8Client.UnRegisterMessageHandler to unregister the current message handler.