|
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 3 examples.
Building the Chapter 3 Examples
To build the Chapter 3 examples, run the _make.bat file in each
of the following directories. Note that the order is important in that the COM
server must be built (and registered) before the COM clients are built.
| book\ch03\servers\com_cpp_server |
| book\ch03\servers\corba_cpp_server |
| book\ch03\clients\com_cpp_client |
| book\ch03\clients\com_vb_client |
| book\ch03\clients\corba_cpp_client |
| book\ch03\clients\corba_java_client
|
Running the Chapter 3 Examples
The CORBA server must be started manually. To start the server, execute the
following:
| book\ch03\servers\corba_cpp_server\_run.bat |
After the CORBA server is started, an IOR will be generated and
placed in the following file:
| book\ch03\servers\corba_cpp_server\ior.txt |
To run the client applications, execute the _run.bat file located in each
client directory.
For the CORBA client applications, you will need to use the IOR
from the ior.txt file.
Remarks
| When running the COM C++ client, a server name must be provided before
pressing 'Initialize' or the application will crash.
|
| Note that although I discuss the use of a proxy-stub DLL in the book, the
example provided relies on type library marshaling. |
|