--------------------------------- Connection Points --------------------------------- See Chapter 6 "Connection Points and Type Information" for information on connectable objects Minimum System Requirements =========================== Windows 95 with DCOM installed or Windows NT 4.0 Visual C++ 5.0 Professional Visual Basic 5.0 Professional Visual J++ 1.1 Microsoft SDK for Java version 2.01 (available on this CD) Microsoft virtual machine for Java (available on this CD) Simple Connectable Object C++ component, C++ Sink ========================= This sample is not a full implementation of a connectable object. 1. Open Simple.dsw in Visual C++ 2. Build Client.exe (this also builds Component.exe) 3. Run Component.exe to register 4. Run Client.exe 5. Press a letter on the keyboard to see the message sent back to the client Simple Connectable Object C++ component, Visual Basic Sink ================================== This sample is not a full implementation of a connectable object. 1. Open Simple.dsw in Visual C++ 2. Build Component.exe 3. Run Component.exe to register 4. Open Simple\VBClient.vbp in Visual Basic 5. Choose Run/Start 6. Press a letter on the keyboard to see the message sent back to the client Simple Connectable Object C++ component, Java Sink ========================== This sample is not a full implementation of a connectable object. 1. Open Simple.dsw in Visual Studio (Visual C++/Visual J++) 2. Build Component.exe 3. Run Component.exe to register 4. Choose Tools/Java Type Library Wizard 5. Check the Inside DCOM Component Type Library checkbox and click OK 6. Set JavaClient as the Active Project 7. Choose Project/Settings, and select the Debug tab 8. In the Class For Debugging/Executing text box, type "Driver" without quotes 9. In the Debug/Execute Project Under section, select the Stand-Alone Interpreter (Applications Only) option and click OK. 10. Build JavaClient NOTE: If the following error is displayed, it is probably because the ConnectionPointCookie class is not installed. Try installing the Microsoft virtual machine for Java (which includes this class) located on this CD. error J0049: Undefined name 'com.ms.com.ConnectionPointCookie' 11. Run JavaClient 12. Press a letter on the keyboard to see the message sent back to the client Full Connectable Object C++ component, C++ Sink ========================= 1. Open Full.dsw in Visual C++ 2. Build Client.exe (this also builds Component.exe) 3. Run Component.exe to register 4. Run Client.exe 5. Press a letter on the keyboard to see the message sent back to the client Full Connectable Object C++ component, C++ Client that constructs v-table =================================================== 1. Open Full.dsw in Visual C++ 2. Build DynaClient.exe (this also builds Component.exe) 3. Run Component.exe to register 4. Run DynaClient.exe 5. Press a letter on the keyboard to see the message sent back to the client Full Connectable Object C++ component, Visual Basic Sink ================================== 1. Open Full.dsw in Visual C++ 2. Build Component.exe 3. Run Component.exe to register 4. Open Full\VBClient.vbp in Visual Basic 5. Choose Run/Start 6. Press a letter on the keyboard to see the message sent back to the client Full Connectable Object C++ component, Java Sink ========================== 1. Open Full.dsw in Visual Studio (Visual C++/Visual J++) 2. Build Component.exe 3. Run Component.exe to register 4. Choose Tools/Java Type Library Wizard 5. Check Inside DCOM Component Type Library checkbox and click OK 6. Set JavaClient as Active Project 7. Choose Project/Settings, and select the Debug tab 8. In the Class For Debugging/Executing text box, type "Driver" without quotes 9. In the Debug/Execute Project Under section, select the Stand- Alone Interpreter (Applications Only) option and click OK. 10. Build JavaClient NOTE: If the following error is displayed, it is probably because the ConnectionPointCookie class is not installed. Try installing the Microsoft virtual machine for Java (which includes this class) located on this CD. error J0049: Undefined name 'com.ms.com.ConnectionPointCookie' 11. Run JavaClient 12. Press a letter on the keyboard to see the message sent back to the client