I use MS Visual C++ as the compiler.
the code cannot pass the compile because of the error I mentioned above.
Do you use the same compiler?
Type: Posts; User: onon
I use MS Visual C++ as the compiler.
the code cannot pass the compile because of the error I mentioned above.
Do you use the same compiler?
I have tried your code,there is a compiling error in the sentence:
WORD wd = cVar;
I also tried COleVariant instead of _variant_t,the similiar error occurs.
the error message is:
cannot...
Yes,I just send a short integer from the DOS-based program using _outp().For example,I sent 2,3,4....But I failed to extract it from the received VARIANT structure of VC program.
COleVariant wrapper?
I have tried the COleVariant structure,the vt and iVal,bVal,lVal,dblVal...all these members doesn't work.
Would you tell me how to use COleVariant wrapper?
I am trying serial port communications between two computers.
1.To send data,one computer runs a DOS-based program and use _outp() to send an integer.
2.To receive data,the other runs a...