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
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 -
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
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
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
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,
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
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
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