|
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:
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.
| book\ch08\automation_interface_approach\vjserver |
| book\ch08\automation_interface_approach\vbclient |
| book\ch08\automation_interface_approach\vcclient |
| book\ch08\automation_interface_approach\vjclient |
Configuring MTS
Start the MTS Explorer (MMC) and do the following:
| Create an MTS package named "Ch8" (the actual name can be of your own
choosing). |
| Add vjserver\Ch8.dll to the Ch8 package.
|
Running the Examples
To run the various client applications, execute the _run.bat file located
in:
| book\ch08\automation_interface_approach\vbclient |
| book\ch08\automation_interface_approach\vcclient |
| book\ch08\automation_interface_approach\vjclient |
Remarks
| When 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.
| book\ch08\custom_interface_approach\vcserver |
| book\ch08\custom_interface_approach\vbclient |
| book\ch08\custom_interface_approach\vcclient |
| book\ch08\custom_interface_approach\vjclient
|
Configuring MTS
Start the MTS Explorer (MMC) and do the following:
| Create an MTS package named "Ch8" (the actual name can be of your own
choosing). |
| Add custom1.dll to the Ch8 package.
|
Running the Examples
To run the various client applications, execute the _run.bat file located
in:
| book\ch08\custom_interface_approach\vbclient |
| book\ch08\custom_interface_approach\vcclient |
| book\ch08\custom_interface_approach\vjclient
|
Remarks
| When 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.
|
| Make 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.
| book\ch08\dual_interface_approach\vbserver |
| book\ch08\dual_interface_approach\vcserver |
| book\ch08\dual_interface_approach\vjserver |
| book\ch08\dual_interface_approach\vb_automation_client |
| book\ch08\dual_interface_approach\vb_com_client |
| book\ch08\dual_interface_approach\vcclient |
| book\ch08\dual_interface_approach\vjclient
|
Configuring MTS
Start the MTS Explorer (MMC) and do the following:
| Create an MTS package named "Ch8" (the actual name can be of your own
choosing). |
| Add the server DLLs to the Ch8 package.
|
Running the Examples
To run the various client applications, execute the _run.bat file located
in:
| book\ch08\dual_interface_approach\vb_automation_client |
| book\ch08\dual_interface_approach\vb_com_client |
| book\ch08\dual_interface_approach\vcclient |
| book\ch08\dual_interface_approach\vjclient
|
Remarks
| When 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. |
|