Home Help Center

use ice in dll?

cool stonecool stone Member yahua zhouOrganization: ieforeverProject: server gis
how to using ice client-side in a dll program?

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    You use it just like you use any other DLL. There is nothing special to it.
  • cool stonecool stone Member yahua zhouOrganization: ieforeverProject: server gis
    hello,
    My client-side program isn't a exe but a dll,how to coding client-side program?
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    There is nothing diferent form Ice point of view

    you must initialize communicator with the needed properties and the you can call methods on proxys like any Ice application.

    Example of the init
        Ice::CommunicatorPtr ic;
        Ice::PropertiesPtr properties=Ice::createProperties();
            properties->load(config);
        Ice::InitializationData initData = Ice::InitializationData();
        initData.properties = properties;
        ic = Ice::initialize(initData);
            try{
            IceGrid::QueryPrx queryPx = IceGrid::QueryPrx::uncheckedCast(ic->stringToProxy("IceGrid/Query"));
    myserver = MyServerPrx::uncheckedCast(
              queryPx->findObjectById(ic->stringToIdentity("MyServerId")));
    myServer->doSameThing();
        }catch(const Ice::Exception& e){
         }
    
  • cool stonecool stone Member yahua zhouOrganization: ieforeverProject: server gis
    use ice in dll?

    hello xdm,
    thank you very much! You may give me a demo if you wish。thanks
Sign In or Register to comment.