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 DIALOG sample performs the following steps:

·Step 1: Enumerating the Service Providers

·Step 2: Creating the DirectPlay Object

·Step 3: Joining a Session

·Step 4: Creating a Session

·Step 5: Creating a Player