Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type mismatch in return from COM object
#2
C# string type is BSTR type in QM. Only few QM functions support BSTR directly. In other cases assign to a str variable.

BSTR b
str s=b ;;OK
out b ;;OK
out "%s" b ;;error
out F"{b}" ;;error

Similarly, C# object type is VARIANT type in QM. Assign to str, int etc.

If in QM the COM interface variable type is IDispatch, all COM functions will return VARIANT.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)