In anticipation of your response... char is the type that has been used to represent a character in C for a very long time now, in fact I've read that it dates back to the same time as C's "if" keyword. TCHAR is a newish type defined by Microsoft that is equivalent to a char when doing a non-Unicode build and equivalent to a wide char (WCHAR) when doing a Unicode build. OpenSSL is platform-independant and therefore does not use such Microsoft-specific types in it's interface. If you wish to use OpenSSL on a Unicode system such as Windows CE you may at times need to convert between ASCII char's and Unicode WCHAR's. This is not a problem specific to OpenSSL, nor To Windows CE; it is a requirement of mixing ASCII and Unicode in a single program. The Win32 functions WideCharToMultiByte and MultiByteToWideChar will help you with the conversions.
Regards, Steven -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Steven Reddie Sent: Friday, 20 June 2003 12:22 AM To: [EMAIL PROTECTED] Subject: RE: openssl for windows ce "tchar" problem Can you give me an example of an OpenSSL function that uses a char type where you expect to be able to use a TCHAR type? Regards, Steven -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Antonio d'Errico Sent: Thursday, 19 June 2003 7:48 PM To: [EMAIL PROTECTED] Subject: openssl for windows ce "tchar" problem Hi, i'm building a windows ce project for pocket pc 2002 with the openssl 0.9.7b e wcecompat support. I have some problems using TCHAR type in functions defined in openssl include files (.h) and libraries, but i must use TCHAR type for the correct visualization about the device! Why openssl libraries for windows ce using char type and not TCHAR type? it's normal? How I do? Thanks for any suggestions _________________________________________________________________ MSN Foto: condividi, ritocca e stampa le tue foto online http://photos.msn.it ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
