Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-10 Thread Kai-Uwe Behrmann
Am 09.06.08, 22:43 -0500 schrieb Bob Friesenhahn: On Tue, 10 Jun 2008, Guy K. Kloss wrote: On Tue, 10 Jun 2008 1:56:46 pm Louis Solomon [SteelBytes] wrote: I much prefer having the apis return error codes. (and if I want strings, then have an api to map error code to string) Well, at

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-09 Thread Louis Solomon [SteelBytes]
personally as to error handling, I don't like either callbacks like lcms currently has, or exception handling. I much prefer having the apis return error codes. (and if I want strings, then have an api to map error code to string) Louis Solomon www.SteelBytes.com - Original Message -

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-09 Thread Guy K. Kloss
On Tue, 10 Jun 2008 1:56:46 pm Louis Solomon [SteelBytes] wrote: I much prefer having the apis return error codes. (and if I want strings, then have an api to map error code to string) Well, at least that would be something that can be wrapped internally into exceptions if one wants to

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-09 Thread Bob Friesenhahn
On Tue, 10 Jun 2008, Guy K. Kloss wrote: On Tue, 10 Jun 2008 1:56:46 pm Louis Solomon [SteelBytes] wrote: I much prefer having the apis return error codes. (and if I want strings, then have an api to map error code to string) Well, at least that would be something that can be wrapped

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-08 Thread Guy K. Kloss
On Fri, 06 Jun 2008 9:01:41 pm Kai-Uwe Behrmann wrote: The lcms(.h) error handler is: typedef int (* cmsErrorHandlerFunction)(int ErrorCode, const char *ErrorText); LCMSAPI void LCMSEXPORT cmsSetErrorHandler(cmsErrorHandlerFunction Fn); Yepp, I'm aware of that. Cant you raise the exception

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-08 Thread Kai-Uwe Behrmann
Am 08.06.08, 18:49 +1200 schrieb Guy K. Kloss: On Fri, 06 Jun 2008 9:01:41 pm Kai-Uwe Behrmann wrote: Cant you raise the exception simply in the cmsErrorHandlerFunction provided by you, by checking ErrorCode and reacting on LCMS_ERRC_ABORTED? Once I do this from one part in my program,

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-08 Thread Kai-Uwe Behrmann
Am 08.06.08, 12:56 +0200 schrieb Kai-Uwe Behrmann: Am 08.06.08, 18:49 +1200 schrieb Guy K. Kloss: On Fri, 06 Jun 2008 9:01:41 pm Kai-Uwe Behrmann wrote: Cant you raise the exception simply in the cmsErrorHandlerFunction provided by you, by checking ErrorCode and reacting on

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-06 Thread Kai-Uwe Behrmann
Am 05.06.08, 15:34 +1200 schrieb Guy K. Kloss: On Thu, 05 Jun 2008 3:11:12 pm 小草 wrote: If i want to call some of the functions, i have to rewrite them in VC MFC functions, ig, replace sprintf with AfxMessageBox or something, so as to use them in my MFC programmes. I wonder if anyone else

Re: [Lcms-user] 转发: 回复: Re: Troub le with command line programming

2008-06-04 Thread Guy K. Kloss
On Thu, 05 Jun 2008 3:11:12 pm 小草 wrote: If i want to call some of the functions, i have to rewrite them in VC MFC functions, ig, replace sprintf with AfxMessageBox or something, so as to use them in my MFC programmes. I wonder if anyone else encounters the same problem? I don't get what you