This section contains two tutorials that provide step-by-step instructions about how to connect an application with or without a lobby. The LOBBY example demonstrates how to connect an application by using a DirectPlay lobby. The DIALOG example demonstrates how to connect an application by using a dialog box that queries the user for connection information. You should write your application so that it can start by using either method.
·Tutorial 1: Connecting by Using the Lobby (LOBBY)
·Tutorial 2: Connecting by Using a Dialog Box (DIALOG)
Note The sample files in these tutorials are written in C++. If you are using a C compiler, you must make the appropriate changes to the files for them to successfully compile. At the very least, you must add the vtable and this pointers to the interface methods. For more information, see Accessing COM Objects by Using C.