mfc >> Activex for serial communications

by Mittik » Fri, 17 Mar 2006 00:41:22 GMT

Hi,
i want to put in the app i'm writing an activex for serial
communications,with an event generated when a given character is
received.Can you suggest me one?No problem if it isn't free




mfc >> Activex for serial communications

by Benry » Fri, 17 Mar 2006 02:22:41 GMT


Have you tried MSComm in MSCOMM32.OCX?

http://www.yes-tele.com/mscomm.html

Hopefully you're using a COM port. If you're using some other serial
interface, you might want to specify in your post.




mfc >> Activex for serial communications

by AliR » Fri, 17 Mar 2006 04:26:52 GMT

Programming for Serial communcations using the SDK is not difficult.

Here is an example:
http://www.codeproject.com/system/chaiyasit_t.asp

AliR.







Similar Threads

1. Visual C++ Serial Port Communications

Hi all,

I don't know if this is the right group but I would be 
glad if someone could put me in the right direction. 

How do I get to send (sync) and receive data (async) via 
the serial port using VC++ Win32. I would like to be 
alerted when there is data in the serial port so the app 
reads the data instead of polling the port continuously. 
Any ideas please?

Thank you.

2. Serial communication using C# for WinCE 5.0 platform

3. Serial communication from C++ to C#

Hello,

I am converting c++ codes to C# now.
When I get to serial communication parts, I found the data types used in C++ 
are different from C# which is not at all supprising at me.
But problem is that in C# there is very convenient class for rs323c 
communication called SerialPort.
It only uses byte date type ( 8 byte unsigned value) or char (16 bit 
unicode) as input parameter.
Neither of them has support a negative value. The old codes of c++ sent a 
negative value through writefile function to serial port. It was poosible 
because char is signed 1 byte value. -128~127.

How do I archive this goal in C#?

TIA

4. Serial Port Communication / Threads - CSharp/C#

5. Serial Port Communication in VB/C# .Net

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
port between two computers using HYper terminal on both the machines.
Both these computers are connected on serial port using DB9(f) null
modem (Cross) cable.

But I dont see any data transfer between these computers. Sometime I
am not able to type anything on the Hyperterminal window also.

Basically I need to migrate the legacy MSComm in VB 6.0 application to
SerialPort in VB.Net 2005.

I have checked that hyper terminal settings are correct in both the
machines.
I am not sure If I am doing anything wrong to simulate this serial
port communication between two computers.

Any help would be appreciated.

Thanks

6. Serial port communication in System.IO.Ports.SerialPort - CSharp/C#

7. .net 2 serial port communications

Hi All

I wrote a application that communicates via the . net 2 serial port
class.  It works fine on Win XP pro
but now I need to run it on Win 2003 server. On Win2003 server the
ouput to the serial port is completely different and no longer
communicates properly.  I suspect it has something to do with the
encoding.  I have set the encoding to a character set 850 (ibm) which
works on the Win XP pro computer.  Any ideas?

Thanks

8. monitoring serial port communication in C# - CSharp/C#