0

I am writing a software in java and using JACOB to invoke methods of a library of type .dll, I am also using Variant to send the input parameters and receive the return values. One of the functions have a return value of byte array. How to use Variant to get this array and iterate on it?

  • It ultimately depends on how the library is exactly designed, as there are many ways to pass VARIANT arguments. Usually a byte array is a SAFEARRAY of type VT_UI1, so the VARTYPE is VT_UI1 | VT_ARRAY and it contains the safearray (pointer). Not sure how you do this with this Jacob library. – Simon Mourier Oct 05 '20 at 12:27
  • @SimonMourier Could you recommend other libraries that can accomplish this? – amr soliman Oct 05 '20 at 13:46
  • I'm afraid not, I don't know much about JAVA, I know only the COM side. – Simon Mourier Oct 05 '20 at 15:31

0 Answers0