Tutorial 2: Connecting by Using a Dialog Box

If a lobby did not start your application, you should include code that allows the user to manually enter the connection information. To demonstrate how to manually connect to the session and create one or more players, the DPCHAT sample performs the following steps:

·Step 1: Creating the DirectPlay Object

·Step 2: Enumerating and Initializing the Service Providers

·Step 3: Joining a Session

·Step 4: Creating a Session

·Step 5: Creating a Player