MSCOMM control in windows ce 5.0

  • Thread starter Thread starter mahesh.5683
  • Start date Start date
M

mahesh.5683

Hi,

Im working on a serial communication program. My application was
created in VS 2005 (VB). I used VB6.0's MSCOMM control in my program.
I included the namespace using

Imports MSCommLib...

Mine is a device application. When i run the .exe in my desktop PC its
running without error. But when i deply it to wince5.0 emulator(using
platform builder), it says that

COM object with CLSID {648A5600-2C6E-101B-82B6-000000000014}cannot be
created due to following error. Class not registered.

In my debug folder of VS 2005 following files were created. Any one
please give me a suggestion. what to do?

Interop.MSCommLib.dll
mscomm32.ocx
and my .exe

If i have to register any files using regsvrce.exe, please tell me how
to register
 
You can't use desktop controls in Windows CE. Use the existing serial port
classes.


-Chris
 
Ok. there is an alternate option Serial port control in VS2005. I will
use that.But is there any way that i can use the MSCOMM control in
VS2005 and then deploy it to Win CE 5.0.
 
I'll repeat again - you cannot use desktop controls in WinCE. They're
compiled for a different processor, they use APIs that don't exist, and in
this case it requires the VB runtimes, which also don't exist for CE.

-Chris
 
No. Use System.IO.Ports (or some other class that uses the Windows CE
communications APIs -- MSComm is a desktop object). If you want example
code, I have that in my book. See below.

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Hello,

if you don't want to use CF 2.0 (IO.ports only exists since 2.0) you
could use .NETCFSDF V1.4 which also has a serial port class, but be
aware that this one might fail on the HP iPaq rx1950 PDA.
(no guarantee that the CF 2.0 ones won't fail too ;-) )

Greetings

Markus
 
Back
Top