Pass Nothing as a parameter value

Help
red_world
2013-12-08
2013-12-09
  • red_world
    red_world
    2013-12-08

    Hi!
    I have a vbscript that works correctly

    s.func 0, obj, Nothing, ""

    and i trying to call the same via j-interop
    but i dont know how to pass the Nothing value in a third parameter

    So, the target function is

        void func(
                        [in] long hwndParent, 
                        [in] IUnknown* pObj, 
                        [in] IDispatch* XMLNode, 
                        BSTR keystr);
    

    very thanks for any help

     
  • red_world
    red_world
    2013-12-08

    i tried null and
    when i put JIvariant.NULL() then exception thrown
    Caused by: org.jinterop.dcom.common.JIRuntimeException: Type mismatch. [0x80020005]

     
    • Hi,

      This is interesting. I am not sure what to put here ... could you get us a
      wireshark capture of the same for VB ? May be we can emulate this.

      best regards,
      Vikram

      On Sun, Dec 8, 2013 at 3:42 PM, red_world redworld2013@users.sf.net wrote:

      i tried null and
      when i put JIvariant.NULL() then exception thrown
      Caused by: org.jinterop.dcom.common.JIRuntimeException: Type mismatch.
      [0x80020005]


      Pass Nothing as a parameter valuehttps://sourceforge.net/p/j-interop/discussion/600730/thread/f6462af9/?limit=25#afff

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/j-interop/discussion/600730/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      The Mind is a place of its own. It can make a heaven out of hell or a hell
      out of heaven. Attitude is everything. No matter how adverse conditions
      maybe, one has the capacity to turn things around by one's Determination,
      Perseverance and Hardwork.

      John Milton
      (Paradise Lost)