Archived
This forum has been archived. Please start a new discussion on GitHub.
Use ice in GUI (with mfc )
in Help Center
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?
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?
0
Comments
-
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, Matthew0