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 mean. sprintf is not to generate output, but to create a formated string. And LCMS is a library, not an end user application. So it should be used that way, and it MUST be kept as openly/freely usable as possible. That includes keeping things like Wintendo/Microsoft specifica out as well as any POSIX specifica. If it has to deal with them, then they must be abstracted out into some utility code that behaves differently on every platform As for your problem: You should be just able to use LCMS in your environment to code against its API and use it. It shouldn't handle any output, dialogues, messages, etc. for you, that's YOUR task. However, on the subject of error handling I have to complain a bit, too. Setting an error handler is nice, but that's not really possible within some applications. An exception with proper exception handling would be preferable for that reason. But that note is besides the track of your request ... Guy -- Guy K. Kloss Institute of Information and Mathematical Sciences Te Kura Putaiao o Mohiohio me Pangarau Room 2.63, Quad Block A Building Massey University, Auckland, Albany Private Bag 102 904, North Shore Mail Centre voice: +64 9 414-0800 ext. 9585 fax: +64 9 441-8181 eMail: [EMAIL PROTECTED] http://iims.massey.ac.nz
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user