Announcement

Collapse
No announcement yet.

NetApi32 Again... Am I missing something?

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

  • NetApi32 Again... Am I missing something?

    Is there a reason why nearly every NetApi32 function has all of it's parameters as "As Any" ?

    Most of the parameters are actually pointers to wide strings (LPWSTR) or UDTs (User_Info_3) etc

    Was this part rushed or am I just not getting it? I suspect the later (as I have been consistantly prooved wrong of late )




    ------------------
    Paul Dwyer
    Network Engineer
    Aussie in Tokyo

  • #2
    PowerBASIC does not natively support Unicode strings which is what the majority of the Net32 API uses.

    Different programmers support Unicode in various ways in their programs. I tend to use dynamic strings and pass the STRPTR when using Unicode. I've seen others that use fixed-length string buffers.

    --Dave


    ------------------
    Home of the BASIC Gurus
    www.basicguru.com
    Home of the BASIC Gurus
    www.basicguru.com

    Comment


    • #3
      Thanks Dav,

      I tend to use Dynamic strings or Word arrays myself, Using ASCIIZ strings doesn't work because functions like Len() and Right$() etc stop at the first chr$(0).

      Cheers

      ------------------
      Paul Dwyer
      Network Engineer
      Aussie in Tokyo

      Comment

      Working...
      X