Use VB to establish a detailed process of DCOM server-side and client applications (3)
Distribution server DCOM application:
In fact, you can already run the program on your machine. If you can test your app on both machines, it can express the characteristics of the DCOM distribution. On the two machines, please follow the following methods:
1. Start "Package & Deloyment Wizard" Install Package Tool
2. Click "Browse", select C: /DCOMDEMO/Server/ProdcomDemOServer.vbp file
3. If you ask if you recompile, "Yes" or "No", click "Next" 4. Always select the default setting until the package is completed, and share the C: / DCOMDEMO / directory
5. In need to install the DCOM server (Winnt), find the shared directory, enter the server / package directory, click the setup.exe file, use the default installation; simultaneously record the IP address of the server, standby
6. Run DCONCNFG.EXE on the DCOM server, set the DCOM 7. Locate ProductVerver, double-click it, and set its Access property, "Start" attribute (for example, build a user ABC on NT, give user ABC own "Access" and "Launch" ProdcomDemoServer.clsdcomDemoServer permissions)
Distribute client DCOM applications: 1. Run the regedit.exe program in the client machine, find the string clsdcomDemoServer, will delete all the registration code related to it, make sure the registry does not exist with CLSDCOMDEMOSERVER
2. Start "Package & Deloyment Wizard" Install Package Tool 3. Click "Browse", select C: /DCOMDEMO/Client/ProdComDemDemoClient.vbp file 4. Click Next 5. Click Next 6. You need to use the client Document, remove the ProductComDemOServer.exe file, and add a reference to the "C: /DCOMDEMO / Server/ProdComDemoServer.vbr" file 7. Click Next 8. Fill in the IP address that is recorded in "Network Address" Use the default settings to complete the remaining packages. 10. Go to the C: / DCOMDEMO / Client / Package / Directory, run the setup.exe file 11. Test application, get the time of the remote server, etc.