Home Help Center

Use ice in GUI (with mfc )

levellevel Member ✭✭
I want to know how can I use ice in GUI (that is in MFC program).
When I put the code

Ice::PropertiesPtr properties = Ice::createProperties(argc, argv);
properties->load("config");
communicator = Ice::initializeWithProperties(argc, argv, properties);


in MFC code, What the code change the "argc argv"?

That is ,How can I initialize the ice's communicator and properties In the MFC program ( none dosbox program)without commandline parameter?

Comments

  • matthewmatthew NL, CanadaMember Matthew NewhookOrganization: ZeroC, Inc.Project: Internet Communications Engine ✭✭✭
    Re: Use ice in GUI (with mfc )
    Originally posted by level
    I want to know how can I use ice in GUI (that is in MFC program).
    When I put the code

    Ice::PropertiesPtr properties = Ice::createProperties(argc, argv);
    properties->load("config");
    communicator = Ice::initializeWithProperties(argc, argv, properties);


    in MFC code, What the code change the "argc argv"?

    That is ,How can I initialize the ice's communicator and properties In the MFC program ( none dosbox program)without commandline parameter?

    The easiest solution to this is to create a dummy argc and argv. See http://www.zeroc.com/vbulletin/showthread.php?s=&threadid=177&highlight=argv here for a solution.

    Regards, Matthew
Sign In or Register to comment.