Using DirectPlay (DirectX 5)   D2 D3

Sample application to demonstrate how to use DirectPlay. It is now designed to work with Microsoft DirectX 5 which contains DirectPlay v3 (IID_IDirectPlay3A). DirectPlay header unit (dplay.pas) is made by Erik Unger (h_unger@magnet.at) and included in the zip file.

This application is converted from Microsoft DirectX SDK sample file - dpchat.exe, using same application CLSID so they can "communicate" each other.

Using thread and "do" WaitForMultipleObject() WinAPI function to handle incoming event instead of using TTimer are major changes.

The code isn't optimized and might contains bugs. Please don't hesitate to contact me if you find one or have any suggestions. I've tested this on my Windows 95 machine with DirectX 5 library and these following network protocols installed:

  • IPX/SPX-compatible protocol
  • NetBEUI
  • TCP/IP.

This code is provided by Hans Gulö.