RE: [Dev-C++] Make switch condition an enum
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2002-10-21 10:46:40
|
Most compilers support float and double too, but if the underlying
processor doesn't support it and the c libraries have to supply a software
emulation, the performance of the program will really suck.
The trick is to know the target environment before starting to code...
When the target OS doesn't have wide character support, the use of wchar_t
isn't recommended.
/Per W
On Mon, 21 Oct 2002, Ioannis Vranos wrote:
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Per Westermark
> > Sent: Sunday, October 20, 2002 7:43 PM
> > To: Ioannis Vranos
> > Cc: dev...@li...
> > Subject: RE: [Dev-C++] Make switch condition an enum
> >
> >
> > Bad programming styles aside.
> >
> > While WinNT/Win2k/WinXP uses Unicode-only in the kernel, older Win95,
> > Win98 don't have unicode, and have to try and convert any
> > unicode calls
> > back to 8-bit characters. Guess what. That takes time. What
> > use do I have
> > of a wchar_t type, when it doesn't exist on the OS?
> >
> > By #undef _UNICODE, a _T("x") program would then compile to a
> > multi-byte
> > character set program, i.e. a lot of strange characters
> > without a 16-bit
> > character type.
> >
> > Life isn't only about C90, C98, C++98 etc. To write programs
> > the customer
> > is happy with, you have to make due with the limitations of the OS,
> > available compilers, ...
>
>
> Well i do not know Win32 API programming. What i know is that wchar_t is
> supported in every C++98 compliant compiler even if the OS doesn't
> support UNICODE.
>
>
>
> Ioannis
>
> * Ioannis Vranos
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> Access Your PC Securely with GoToMyPC. Try Free Now
> https://www.gotomypc.com/s/OSND/DD
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|