Announcement

Collapse
No announcement yet.

non-variant com variable passing

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

  • 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

  • #2
    Forget the 00 stuff, try ucode$( "key..." )
    hellobasic

    Comment


    • #3
      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

      Comment


      • #4
        Most likely..
        If it has a IDispatch interface you may also try the OBJECT CALL functions instead.
        They use variants.
        hellobasic

        Comment

        Working...
        X