All you need is in MSDN, which should have come with your compiler.

Regards
Paul

Paul Grenyer
email: [EMAIL PROTECTED]
web: http://www.paulgrenyer.co.uk
Aeryn: http://www.aeryn.co.uk

Over £100 on a toaster? I thought £40 for my kettle with coloured lights
was extravagant!

----- Original Message ----- 
From: "wellstyang" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 01, 2005 1:46 AM
Subject: [msvc] I wanna to know how to use MSComm and VARIANT variable to
communicate throught COM


> Hello,
> I’m programming a project which used MSComm to communicate with a device
through COM.
> I have a problem while using a VARIANT variable to send instruct to the
device and use it to receive information get from it. While I don’t know
how to set the VARIANT variable to sent instruct correctly to the device
through COM by MSComm.SetInput(), and change the VARIANT variable get form
the device by MSComm.GetOutput() correctly to the type I want. The instruct
I want to send the device is a string including 4 BYTEs, and the data I get
want to be changed into BYTE.
> I also want to know the usage of ColeSafeArray and why should make it
equal to the VARIANT variable.
> Please give me an example which includes the use of VARIANT variable and
the usage of ColeSafeArray.
> Thank you very much.
> PS, English is my second language, so please explain more clear so that I
can understand it more easily.
> Wells Yang
>


----------------------------------------------------------------------------
----


> _______________________________________________
> msvc mailing list
> [email protected]
> See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for
subscription changes, and list archive.
>


----------------------------------------------------------------------------
----


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.12.6/151 - Release Date: 28/10/2005


_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to