Results 1 to 5 of 5

Thread: pcWStr

  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,530
    Rep Power
    171

    pcWStr

    I want to wrap a few functions from a .dll to have it useable in thinbasic. Especially I want to know aboutPCWSTR , I know from the suffix it's kind of a string. But what exactly? Which one to use to substitute PCWSTR in thinbasic. And - for an idea to code: Did anyone already create some thinbasic-import-kit that would determine the original language and according to it replace code and keywords as much as possible to tb?
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  3. #3
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,530
    Rep Power
    171
    Yes. Now I got it. Must be a pointer to a $Null-terminated wide string so 2 bytes per char...+ $Null
    I think there are missing some Forum-sections as beta-testing and support

  4. #4
    Quote Originally Posted by ReneMiner View Post
    Yes. Now I got it. Must be a pointer to a $Null-terminated wide string so 2 bytes per char...+ $Null
    You're welcome
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  5. #5
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,530
    Rep Power
    171
    It even is already available in tb it's called
    WStringZ.
    If there were a translator that makes from example
    PCWSTR someString

    To
    someString As WStringZ
    and that according to is it local, global or within Type definition put in front the local, global or just $Tab ( but not exchange the original line - just comment- and maybe the rules if it's JavaScript or C# or whatever in some ini to know what is keywords or variables names and if have classes or just procedures - should be able to determine by file-ext. And be extendeable through the ini containing translation rules. It could speed up posting functions or scripts from other systems to tb. Maybe if I have time after I am done with the current I will think about it....
    I think there are missing some Forum-sections as beta-testing and support

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •