Search:

Type: Posts; User: onon

Search: Search took 0.01 seconds.

  1. the compiler is MS Visual C++

    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?
  2. Thanks,but it still exists some problem

    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...
  3. it is a short integer

    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.
  4. COleVariant wrapper? I have tried the...

    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?
  5. How to extract an integer from the VARIANT structure?

    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...
Results 1 to 5 of 6