469,331 Members | 1,881 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

Serial Communication

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
Nov 15 '05 #1
3 2887
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/
"carmen" <en****@terra.es> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl...
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

Nov 15 '05 #2
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
"Gaurav Khanna [C# MVP]" <ga****@wintoolzone.com> escribió en el mensaje
news:uF**************@TK2MSFTNGP11.phx.gbl...
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/
"carmen" <en****@terra.es> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl...
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


Nov 15 '05 #3
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/
"carmen" <en****@terra.es> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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
"Gaurav Khanna [C# MVP]" <ga****@wintoolzone.com> escribió en el mensaje
news:uF**************@TK2MSFTNGP11.phx.gbl...
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/
"carmen" <en****@terra.es> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl...
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



Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Andreas Horneff | last post: by
6 posts views Thread by Leandro Berti via DotNetMonster.com | last post: by
2 posts views Thread by Marco Trapanese | last post: by
4 posts views Thread by max_mont | last post: by
reply views Thread by Dhananjay | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Purva khokhar | last post: by
1 post views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.