MSCOMM control in windows ce 5.0

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
 
G

Guest

You can't use desktop controls in Windows CE. Use the existing serial port
classes.


-Chris
 
M

mahesh.5683

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.
 
G

Guest

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
 
D

Dick Grier

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.
 
M

Markus Humm

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top