Why and when to perform this task
Use this task to add code that initializes the Object Request Broker (ORB) for use by the client program.
To do this, edit the client source file, client.cpp, and add the following code to the main() function:
int main ( int argc, char *argv[] ) { CORBA::ORB_ptr orbPtr = CORBA::ORB_init ( argc, argv, "DSOM" ); if ( CORBA::is_nil(orbPtr) ) { cerr << "Error initializing the ORB!" << endl; return 1; } . . . }
Results
This task adds code to initialize the client environment for a CORBA client.What to do next
You need to add code to the client source file to enable the client to access naming contexts as described in Adding code to access naming contexts.