When I install my program, I install .net compact 1.0 SP3, SQLCE 2.0
and my program, so I install 3 cabs.
I have run my program on WM6.0 it's ok, but on WM6.1 my program dont'
run and when I remove CF compact 1.0 my program runs, but I want that
my program run with dll from CF 1.0 and not CF 2.0.
Can I do that ?
Paul T.
"Amirallia" wrote:
> .
>
Because I've developped an application since 2003. And I have no
problems on several device(WM2003, WM5.0, WM6.0), but with a WM6.1
device I have a problem when calling ReadFile API for communicate with
Serial Port(see message ID 121225 on this forum). And I have read on
forums that there is a bug with ReadFile on CF2.0
So I want to force my progam to runs with CF1.0
There is is problem with reads. This has to be solve by changing the
threading approach. You cannot poll the ReadFile API in a loop, you have to
use the WaitCommEvent API callback instead (and call ReadFile only after a
WaitCommEvent is generated by the API). I think this change is needed for
any Windows Mobile device later than WM5.0 SP1. I show the source code for
this approach, in VB, in my book.
However, I think the appropriate way to handle this porting problem is to
use the SerialPort object that is built into the Compact Framework 2.0 or
later (System.IO.Ports.SerialPort).
Dick
--
Richard Grier, Consultant, Hard & Software 12962 West Louisiana Avenue
Lakewood, CO 80228 303-986-2179 (voice) Homepage: www.hardandsoftware.net
Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004, Revised July
2006.