Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-08-2005
Kruppy Kruppy is offline
Registered User
 
Name: Yuri Krupp
Organization: Eljaco Inc
Project: Grid Query tool
 
Join Date: Aug 2005
Location: New York
Posts: 32
Loading properties file in MFC sample

Hi,
I cann't make it working for me: the way you load the config file in the MFC sample client application. The property->load operation throws the SysCallException. Is this problem about making the caller having read permissions (p. 27.8.4)? What I am missing here?
BTW, my client is MFC dll.
Thank you
Yuri
Reply With Quote
  #2 (permalink)  
Old 11-08-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Please see this thread regarding our support policy here on these forums:

Important note: Change in support policy
Reply With Quote
  #3 (permalink)  
Old 11-08-2005
Kruppy Kruppy is offline
Registered User
 
Name: Yuri Krupp
Organization: Eljaco Inc
Project: Grid Query tool
 
Join Date: Aug 2005
Location: New York
Posts: 32
I am sorry, Mark, I've updated my signature and profile. The company I am working for is small one and currently does not have a web site.
__________________
Yuri Krupp
Eljaco Inc,
Project: Grid Query Tool
Reply With Quote
  #4 (permalink)  
Old 11-08-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
As SyscallException usually indicates that the file can either not be found, or that you do not have permissions to read the file. I recommend to double-check the file path and permissions.
Reply With Quote
  #5 (permalink)  
Old 11-08-2005
Kruppy Kruppy is offline
Registered User
 
Name: Yuri Krupp
Organization: Eljaco Inc
Project: Grid Query tool
 
Join Date: Aug 2005
Location: New York
Posts: 32
Thanks Marc,
the full file path worked for me...
Best Reqards
__________________
Yuri Krupp
Eljaco Inc,
Project: Grid Query Tool
Reply With Quote
  #6 (permalink)  
Old 11-08-2005
Kruppy Kruppy is offline
Registered User
 
Name: Yuri Krupp
Organization: Eljaco Inc
Project: Grid Query tool
 
Join Date: Aug 2005
Location: New York
Posts: 32
Marc,
Anyways, let me ask again about saving properties: All I need is just a direction, I think. Just haven't done it. If it's still beyond the scope of support, then ok, thanks anyway...

One can save the list of props using config file as a storage and then re-use them using API, or it's just .txt or .ini file that should be used for storage along with functions like WritePrivateProfileString(..)?

Thank you
__________________
Yuri Krupp
Eljaco Inc,
Project: Grid Query Tool
Reply With Quote
  #7 (permalink)  
Old 11-08-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Use this function to get all properties from a property set (Ice::Properties):
Code:
    /**
     *
     * Get all properties whose keys begins with
     * <replaceable>prefix</replaceable>. If
     * <replaceable>prefix</replaceable> is an empty string,
     * then all properties are returned.
     *
     * @return The matching property set.
     *
     **/
    PropertyDict getPropertiesForPrefix(string prefix);
Then iterate over all properties and save them in a file.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
config file properties Greenhippo Help Center 3 01-16-2007 04:07 AM
problems with properties cesartovic Help Center 6 04-27-2006 01:05 PM
Typo in Java Glacier2 demo properties file? bartley Bug Reports 2 02-09-2006 05:35 PM
set config properties w/o config file dkey Help Center 3 05-08-2005 06:27 AM
NoEndpointException and dynamic loading using IcePack brian Help Center 2 04-27-2004 04:15 PM


All times are GMT -4. The time now is 11:23 PM.


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.