Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-11-2004
level level is offline
Registered User
 
 
Join Date: Feb 2004
Location: China
Posts: 71
Use ice in GUI (with mfc )

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?
Reply With Quote
  #2 (permalink)  
Old 02-11-2004
matthew's Avatar
matthew matthew is online now
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,061
Re: Use ice in GUI (with mfc )

Quote:
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 Alternative Ice::initialize in Client here for a solution.

Regards, Matthew
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 10:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.