Results 1 to 5 of 5

Thread: use ice in dll?

  1. #1
    cool stone is offline Registered User
    Name: yahua zhou
    Organization: ieforever
    Project: server gis
    Join Date
    May 2007
    Posts
    3

    Question use ice in dll?

    how to using ice client-side in a dll program?
    Last edited by cool stone; 05-22-2007 at 10:42 PM.

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    You use it just like you use any other DLL. There is nothing special to it.

  3. #3
    cool stone is offline Registered User
    Name: yahua zhou
    Organization: ieforever
    Project: server gis
    Join Date
    May 2007
    Posts
    3

    Question

    hello,
    My client-side program isn't a exe but a dll,how to coding client-side program?

  4. #4
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruņa, Spain
    Posts
    588
    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
    Code:
        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){
         }

  5. #5
    cool stone is offline Registered User
    Name: yahua zhou
    Organization: ieforever
    Project: server gis
    Join Date
    May 2007
    Posts
    3

    Thumbs up use ice in dll?

    hello xdm,
    thank you very much! You may give me a demo if you wish。thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to use ice within dll's program?
    By JaneShang in forum Help Center
    Replies: 1
    Last Post: 07-20-2009, 10:13 PM
  2. Replies: 3
    Last Post: 05-02-2007, 09:51 AM
  3. Ice-E problem with dll
    By Maestro Arohtar in forum Help Center
    Replies: 1
    Last Post: 04-02-2007, 12:11 AM
  4. may I implement ice in dll
    By simpley in forum Help Center
    Replies: 3
    Last Post: 11-17-2003, 08:41 PM
  5. MFC DLL with ICE
    By amrufon in forum Help Center
    Replies: 2
    Last Post: 08-13-2003, 01:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •