Announcement

Collapse
No announcement yet.

non-variant com variable passing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Edwin Knoppert
    replied
    Most likely..
    If it has a IDispatch interface you may also try the OBJECT CALL functions instead.
    They use variants.

    Leave a comment:


  • kunhock Koo
    replied
    Ya that work .. thanks

    Yes that work .. and solve another problem I experienced when I extract data from the com object (by applying acode$ to the result).

    But .. please enlighten me .. does that mean this com object work in unicode ?

    Regards.

    Kunhock

    Leave a comment:


  • Edwin Knoppert
    replied
    Forget the 00 stuff, try ucode$( "key..." )

    Leave a comment:


  • kunhock Koo
    started a topic non-variant com variable passing

    non-variant com variable passing

    I am trying to use the new non-variant method for passing variable to com.

    I am experienced problem in that, it seems to add a terminating char ZERO.

    My application is to pass license key to the com i licensed, but the com then complain of invalid key. And when I read back the key stored, it has one char extra which is char ZERO.

    like :

    keyStr = "abc"

    myCom.LicenseKey = keyStr

    print myCom.licenseKey ( read -> "abc<00>")


    Any help ?

    Regards and Thanks.

    Kunhock
Working...
X