Chapter 8 Notes

 

Home Purchase Preface Contents Examples Resources Errata Site Guide

 COM and CORBAŽ Side by Side

Before you attempt to run the examples, make sure that you have properly configured your environment.

Click here for information related to the configuration that I used on my computers.

Click here for an overview of the Chapter 8 examples.

Chapter 8 covers the following COM client approaches:

bulletAutomation Interface Approach
bulletCustom Interface Approach
bulletDual Interface Approach
  

Automation Interface Approach

Building the Examples

To build the examples, run the _make.bat file in each of the following directories. Note that the order in which the examples are built is important.

bulletbook\ch08\automation_interface_approach\vjserver
bulletbook\ch08\automation_interface_approach\vbclient
bulletbook\ch08\automation_interface_approach\vcclient
bulletbook\ch08\automation_interface_approach\vjclient

Configuring MTS

Start the MTS Explorer (MMC) and do the following:

bulletCreate an MTS package named "Ch8" (the actual name can be of your own choosing).
bullet Add vjserver\Ch8.dll to the Ch8 package.
   

Running the Examples

To run the various client applications, execute the _run.bat file located in:

bulletbook\ch08\automation_interface_approach\vbclient
bulletbook\ch08\automation_interface_approach\vcclient
bulletbook\ch08\automation_interface_approach\vjclient

Remarks

bulletWhen running the client applications on a machine where the server has not been installed, the appropriate ProgID must be registered. To do this, run the following regedit file on the machine where the client applications are installed:

c:\> regedit book\ch08\automation_interface_approach\progid.reg

As an alternative, you should be able to simply double-click on the above .reg file within Windows Explorer on the client machine.
  

Custom Interface Approach

Building the Examples

To build the examples, run the _make.bat file in each of the following directories. Note that the order in which the examples are built is important.

bulletbook\ch08\custom_interface_approach\vcserver
bulletbook\ch08\custom_interface_approach\vbclient
bulletbook\ch08\custom_interface_approach\vcclient
bulletbook\ch08\custom_interface_approach\vjclient
     

Configuring MTS

Start the MTS Explorer (MMC) and do the following:

bulletCreate an MTS package named "Ch8" (the actual name can be of your own choosing).
bullet Add custom1.dll to the Ch8 package.
   

Running the Examples

To run the various client applications, execute the _run.bat file located in:

bulletbook\ch08\custom_interface_approach\vbclient
bulletbook\ch08\custom_interface_approach\vcclient
bulletbook\ch08\custom_interface_approach\vjclient
  

Remarks

bulletWhen running the client applications on a machine where the server has not been installed, the appropriate ProgID must be registered. To do this, run the following regedit file on the machine where the client applications are installed:

c:\> regedit book\ch08\custom_interface_approach\progid.reg

As an alternative, you should be able to simply double-click on the above .reg file within Windows Explorer on the client machine.
  

bulletMake sure that the proxy-stub dll (custom1ps.dll) gets registered (using regsvr32) on the client machine as well as the server machine.
  

Dual Interface Approach

Building the Examples

To build the examples, run the _make.bat file in each of the following directories. Note that the order in which the examples are built is important.

bulletbook\ch08\dual_interface_approach\vbserver
bulletbook\ch08\dual_interface_approach\vcserver
bulletbook\ch08\dual_interface_approach\vjserver
bulletbook\ch08\dual_interface_approach\vb_automation_client
bulletbook\ch08\dual_interface_approach\vb_com_client
bulletbook\ch08\dual_interface_approach\vcclient
bulletbook\ch08\dual_interface_approach\vjclient
    

Configuring MTS

Start the MTS Explorer (MMC) and do the following:

bulletCreate an MTS package named "Ch8" (the actual name can be of your own choosing).
bullet Add the server DLLs to the Ch8 package.
   

Running the Examples

To run the various client applications, execute the _run.bat file located in:

bulletbook\ch08\dual_interface_approach\vb_automation_client
bulletbook\ch08\dual_interface_approach\vb_com_client
bulletbook\ch08\dual_interface_approach\vcclient
bulletbook\ch08\dual_interface_approach\vjclient
   

Remarks

bulletWhen running the client applications on a machine where the server has not been installed, the appropriate ProgID must be registered. To do this, run the following regedit file on the machine where the client applications are installed:

c:\> regedit book\ch08\dual_interface_approach\progid.reg

As an alternative, you should be able to simply double-click on the above .reg file within Windows Explorer on the client machine.

 

 

Home ] Up ] Purchase ] Preface ] Contents ] Resources ] Errata ] Site Guide ]

Send mail to jpritchard@pobox.com with questions or comments about this web site.
Last modified: August 12, 2003