Posted: Mon Feb 23, 2004 2:44 am Post subject: cciLog in UNIX (AIX)
Newbie
Joined: 28 Aug 2003 Posts: 8 Location: Israel
I have implemented a user defined node in windows. I have used cciLog to report problems to the event log of windows. Once I have completed the task I have decided to port the code to UNIX. I have managed to port it exceot for the following problem. I can't use the cciLog as documented ....
I have built the catalog usig gencat with the messages which are similar to the ones in the xxxx.MC file from windows. For "text insert" parameter I have replaced the %1 of windows with %1$s of Unix catalog. I have run my program and I have noticed the the messages get into the log but the replacement is not performed (i.e. the log shows "Error %1$s in %2$s...")
without performing the actual insertion .... any ideas ????
Posted: Wed Feb 25, 2004 12:51 am Post subject: Re: cciLog in UNIX (AIX)
Apprentice
Joined: 25 Jul 2002 Posts: 35 Location: Germany
Oron wrote:
I have implemented a user defined node in windows. I have used cciLog to report problems to the event log of windows. Once I have completed the task I have decided to port the code to UNIX. I have managed to port it exceot for the following problem. I can't use the cciLog as documented ....
I have built the catalog usig gencat with the messages which are similar to the ones in the xxxx.MC file from windows. For "text insert" parameter I have replaced the %1 of windows with %1$s of Unix catalog. I have run my program and I have noticed the the messages get into the log but the replacement is not performed (i.e. the log shows "Error %1$s in %2$s...")
without performing the actual insertion .... any ideas ????
Thanks,
Oron.
Try with {0} {1} ... for parameters ( as described in the Programming Guide - "Building and installing an XPG4 message catalog").
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum