#include <visits.h> // for VISIts
#include <corba.h>
int main(int argc, char** argv)
{
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
VISTransactionService::init(argc, argv);
// the main work of the application is now performed
...
VISTransactionService::terminate();
}If you are creating transactions directly from the TransactionFactory rather than using Current, then the client will have to bind to the correct TransactionFactory. Refer to the semantics for binding to any CORBA object to make sure the client binds to the correct object.To compile a C++ source file that will link with its_support.lib or ots_r.lib, you must include the version of CosTransactions_c.hh or VISTransactions_c.hh supplied by VisiTransact, not an IDL client stub header file that you generate from CosTransactions.idl or VISTransactions.idl. (The objects you will link against in the VisiTransact-supplied libraries are valid only against the header files used to build them.) Any application using the Current interface will be linking against these libraries.