473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 3113
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andreas Horneff | last post by:
Hi @ all, I've got a problem with serial communication in Borland C++ Builder. I've already found a lot of stuff about serial communication in the internet, but it dosen't work. What I want...
11
by: sarah | last post by:
hI, I have a project. I need to realise serial communication between PC and Altera FPGA in c or c++. The function of FPGA is working well. it can send data to uart. Does anybody know how to...
4
by: Vidya Bhagwath | last post by:
Hello Experts, I am porting the C++ code into the Visual C#.NET. My C++ code is mainly based on the serial communication. So I am using the windows structure such as DCB.. etc and the windows...
6
by: Leandro Berti via DotNetMonster.com | last post by:
Hi All, I wrote a code to do serial communication with an equipament. When i use the code outside of threaded class it seens work properly, but when i put inside a class and execute a thread in...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
2
by: Marco Trapanese | last post by:
Hi, every 250 ms (timer event) I must send several commands via serial port. The serial unit will answer to each command sent. I must wait the answer before send the next command. How can I...
4
by: max_mont | last post by:
Hi all, I'm a newbie in .NET technology. I've already developed Serial communication applications in C++ (WIN32). And I wanted to migrate to .NET technology. There is a serial component in...
2
by: Adrian Chen | last post by:
please help me! I come across a problem. Now I develop a finger print management system which is based on B/S.When users click a button in the web pages, a device connected to the COM1 serial port...
0
by: Dhananjay | last post by:
Hi, I am working on an VB.Net application which I want to communicate to external device using comm port (Serial Port) . So for that first I am trying to simulate the communication on serial...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.