Serial Communication

C

carmen

I'm working in an aplication for a Smart Device that need to "talk" with a
printer continuosly through the serial port. I'm trying to use the John
Hint's sample code "Use P/Invoke to develop a .NET Base Class Library for
Serial Device Communication" but I'm new with VC# and need some basic rules
because I have a lot of compilation errors.
Where should I create my inherited class?
Thank you
 
G

Gaurav Khanna [C# MVP]

Hi!

Could you be specific as to which errors are coming up? Also, does the
following link help you (its contains a managed serial communication class
implementation):

http://www.codeproject.com/dotnet/DotNetComPorts.asp

--
Regards,
Kumar Gaurav Khanna
-----------------------------------------------------------------
Microsoft MVP - C#/.NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
Bangalore .NET Users' Group
http://groups.msn.com/bdotnet/
 
C

carmen

Thank you for the link !!
The errors are due to a bad impletentation of the inheritance of the Base
Class because I'm new with this lenguage.
I think that I need to work with easy projects and later try the serial
communication.
Thanks again
 
G

Gaurav Khanna [C# MVP]

Hi!

Well, with the serial communication class the link talks about, you wont
need to inherit from it.. unless you want your own enhanced class.

So, this should serve the purpose.

--
Regards,
Kumar Gaurav Khanna
-----------------------------------------------------------------
Microsoft MVP - C#/.NET, MCSE Windows 2000/NT4, MCP+I
WinToolZone - Spelunking Microsoft Technologies
http://www.wintoolzone.com/
OpSupport - Spelunking Rotor
http://opsupport.sscli.net/
Bangalore .NET Users' Group
http://groups.msn.com/bdotnet/
 

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