--------------------------- Moniker --------------------------- See Chapter 7 "Monikers and Structured Storage" for information on Monikers Minimum System Requirements =========================== Windows 95 with DCOM installed or Windows NT 4.0 Visual C++ 5.0 Professional Visual Basic 5.0 Professional Custom Activation Interface =========================== C++ client, C++ Component 1. Open "Custom Activation Interface.dsw" in Visual C++ 2. Build Client.exe (this also builds Component.exe) 3. Run Component.exe to register 4. Run Client.exe to test VB client, C++ Component 1. If you haven't already, build and register Component.exe created above 2. Open "Custom Activation Interface\VBClient.vbp" in Visual Basic 3. Choose Run/Start and then click on Form1 to test Marvelous Moniker ================= C++ client (local) 1. Open "Marvelous Moniker.dsw" in Visual C++ 2. Build Moniker.dll 3. Register Moniker.dll 4. Specify local computer name (MyHost) in client.cpp 5. Build Client.exe (this also builds Component.exe) 6. Run Component.exe to register 7. Run Client.exe to test C++ client (remote) Local computer can be Windows 95 with DCOM or Windows NT 4.0 Remote computer must be Windows NT 4.0 1. Open "Marvelous Moniker.dsw" in Visual C++ 2. Build Moniker.dll 3. Specify remote computer name (MyHost) in client.cpp 4. Build Client.exe (this also builds Component.exe) 5. Register Moniker.dll and Component.exe on local computer 6. Copy Component.exe to remote computer 7. Run Component.exe on remote computer to register 8. Run Client.exe on local computer to test VB client (local) 1. Register Moniker.dll and Component.exe on local computer 2. Open "Marvelous Moniker\VBClient.vbp" in Visual Basic 3. Specify local computer name (hostname) in Form1 4. Choose Run-Start and then click on Form1 to test VB client (remote) Local computer can be Windows 95 with DCOM or Windows NT 4.0 Remote computer must be Windows NT 4.0 1. Register Moniker.dll and Component.exe on local computer 2. Register Component.exe on remote computer 3. Open "Marvelous Moniker\VBClient.vbp" in Visual Basic 4. Specify remote computer name (hostname) in Form1 5. Choose Run/Start and then click on Form1 to test Moniker Utilities ================= 1. Open Utilities.dsw in Visual C++ 2. Build "Class Moniker Activation.exe" (this also builds Component.dll) 3. Register Component.dll 4. Run "Class Moniker Activation.exe" to test 5. In "Class Moniker Activation.cpp", comment out the BindMoniker statement and remove comments from the 4 lines that start with IBindCtx* pClassBindCtx; as shown here: // BindMoniker(pClassMoniker, 0, IID_IClassFactory, // (void**)&pClassFactory); IBindCtx* pClassBindCtx; CreateBindCtx(0, &pClassBindCtx); pClassMoniker->BindToObject(pClassBindCtx, NULL, IID_IClassFactory, (void**)&pClassFactory); pClassBindCtx->Release(); 6. ReBuild "Class Moniker Activation.exe" 7. Run "Class Moniker Activation.exe" to test 8. Build CoGetObject.exe 9. Run CoGetObject.exe to test 10. Build "MkParseDisplayName Client.exe" 11. Run "MkParseDisplayName Client.exe" to test 12. Build ROT.exe 13. Run ROT.exe to view objects in Running Object Table