From salvatore.russo at laposte.net Mon Aug 8 15:46:58 2005 From: salvatore.russo at laposte.net (Salvatore Russo) Date: Mon, 8 Aug 2005 15:46:58 +0200 Subject: [PythonCE] PythonCE, pocketpc and UNICODE Message-ID: Hallo, I am using PythonCE embedded in a C/C++ code to port an open source application for my pocketpc. All documentation I read about ?porting and application to pocketpc? said that we have to convert the application in Unicode, with wchat?t and L?blabla? instead of char and ?blabla? (and all associated string functions str*). But I am a little confused because lot of programs for pocketpc uses also char. And all include files for python are specified with char strings. For pythonCE, do I have to use the same /include/ as python 2.3.4? Because these includes are not for Unicode. Am I really obliged to convert all the application in UNICODE to make it work for pocketpc? If yes, EACH time that I want to use a pythonCE function in my C code, I need to convert my variables in ascii to pass? them to pythonCE and then again in Unicode to use them in my pocketpc working in Unicode?? That?s what I wanted to do but it will be a huge work and I wanted first to ask your expert opinion before making such thinks :=) Maybe there is a better solution . Thanks a lot for your help, Salvatore Acc?dez au courrier ?lectronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,34?/mn) ; t?l : 08 92 68 13 50 (0,34?/mn) From eckhardt at satorlaser.com Mon Aug 8 18:17:01 2005 From: eckhardt at satorlaser.com (Ulrich Eckhardt) Date: Mon, 8 Aug 2005 18:17:01 +0200 Subject: [PythonCE] PythonCE, pocketpc and UNICODE In-Reply-To: References: Message-ID: <200508081817.02093.eckhardt@satorlaser.com> Salvatore Russo wrote: > I am using PythonCE embedded in a C/C++ code to port an open source > application for my pocketpc. All documentation I read about ?porting and > application to pocketpc? said that we have to convert the application in > Unicode, with wchat?t and L?blabla? instead of char and ?blabla? (and all > associated string functions str*). No. If you look at the specs for the win32 API, you will see that it often uses something called TCHAR (or LPTSTR/LPCTSTR). This TCHAR is either char or wchar_t, depending on the _UNICODE preprocessor macro. Also, on win9x you only have the char versions while on CE you only have the wchar_t versions. Windows NT has both, although the char versions are mapped to the wchar_t versions. The same can be achieved for win9x with some addon library. In short: when programming for the win32 API, always use TCHAR like this: LPCTSTR str = _T("foo"); other than that, you are free to choose whichever fits your needs. > But I am a little confused because lot of programs for pocketpc uses also > char. And all include files for python are specified with char strings. I can only guess here, as my Python knowledge is limited, but it is entirely possible that the Python API expects Unicode strings in UTF-8 encoding - maybe someone else can clarify this topic. Uli From mike at pcblokes.com Tue Aug 16 13:42:29 2005 From: mike at pcblokes.com (Michael Foord) Date: Tue, 16 Aug 2005 12:42:29 +0100 Subject: [PythonCE] Jornada 820 Message-ID: <4301D125.4010504@pcblokes.com> Hello All, I've just acquired (and am enjoying using) a Jornada 820. This has 32mb of ram and 200mhz StrongArm processor (very good for it's day) - but I believe runs Windows CE 2.11. Does anyone know which is the latest version of PythonCE to run on it ? It looks like the binaries at http://sourceforge.net/projects/pythonce are for WindowsCE 3.0 - and so unlikely to run on the device. I can't even see a version of 2.2 compiled for CE 2.11 :-( All the Best, Fuzzy http://www.voidspace.org.uk/python From djl at ukr.net Tue Aug 30 18:50:18 2005 From: djl at ukr.net (DJL) Date: Tue, 30 Aug 2005 09:50:18 -0700 Subject: [PythonCE] wxpython for ppc Message-ID: <43148E4A.1000709@ukr.net> do any body know the url site to download wxpyhton bin for ppc2003? Thanks From kitsune_e at yahoo.com Tue Aug 30 18:18:34 2005 From: kitsune_e at yahoo.com (Ed Blake) Date: Tue, 30 Aug 2005 09:18:34 -0700 (PDT) Subject: [PythonCE] wxpython for ppc In-Reply-To: <43148E4A.1000709@ukr.net> Message-ID: <20050830161834.18144.qmail@web50203.mail.yahoo.com> You could probably find it by searching through the list archive, or by googling it, but since things like this usually disappear at inopertune moments I have a collection of PythonCE stuff stored here: http://kitsu.petesdomain.com/files/WinCE/ --- DJL wrote: > do any body know the url site to download wxpyhton bin for ppc2003? > > > Thanks