#include "stdafx.h" #using #include #using #using using namespace System; int _tmain(void) { String *str[] = {"-ORBDebug"}; Ics::Runtime::RuntimeConfiguration *rc = new Ics::Runtime::RuntimeConfiguration(); rc->SetApplicationLog(Ics::Runtime::OrbErrorLevel::ERRORS, "CltLog.log", false); Ics::CORBA::ORB *oOrb = Ics::CORBA::_ORB::init(rc); Hello::Greetings *oRefGreetings = Hello::GreetingsHelper::narrow( oOrb->string_to_object("file://c:\\hello.ior")); Console::WriteLine("\nCall server, returns {0}", oRefGreetings->hello("Santa Claus") ); oOrb->destroy(); rc = NULL; return 0; }