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
想 要 一 个 快 n 倍 的 免 费 邮 箱 吗 ?
126 专 业 电 子 邮 局 ―― 全 球 领 先 的 中 文 邮 箱 服 商 带 你 进 入 极 速 之 旅
_______________________________________________ msvc mailing list msvc@beginthread.com See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.