/** ** ** MinCor-C# -Demo ** CORBA Solution for .Net with C# Language mapping ** Version: 1.0 ** ** Copyright: ** Middsol GmbH, Hamburg ** Germany 2004 ** www.Middsol.com ** info@Middsol.de ** */ using System; using System.Drawing; using System.Collections; using System.Windows.Forms; using System.Data; namespace HelloClt { public class ClientImpl { private Example.Greetings m_oGreetings = null; private Middsol.CORBA.ORB m_oOrb = null; private string[] m_strOrbInitParam = {"-ORBEndpoint iiop://LOCALHOST:8645/portspan=100", "-ORBDebug Out=.\\HelloClt.log", "-CltSndTimeout 1000"}; public ClientImpl() { m_oOrb = Middsol.CORBA._ORB.init( m_strOrbInitParam, null); m_oGreetings = Example.GreetingsHelper.narrow( m_oOrb.string_to_object("file://.\\HelloSrv.ior" )); } public void destroy() { if( m_oOrb == null) return; m_oOrb.destroy(); } public Example.Greetings Greetings { get{ return m_oGreetings;} } } }