Announcement

Collapse
No announcement yet.

Just curious...

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

  • Just curious...

    Hello,


    Do ASCIIZ and FIXED STRINGS use the OLE strings?


    ------------------
    Cheers

  • #2
    Hello,

    No they don't.

    For proof look at pointers. You must use STRPTR in order to get a pointer to the data of an OLE string as VARPTR would return a pointer to the handle of the OLE string. However VARPTR will return the address of the data for ASCIIZ and fixed len. strings because they have no handles.

    Colin Schmidt

    ------------------
    Colin Schmidt & James Duffy, Praxis Enterprises, Canada
    [email protected]

    Comment


    • #3
      I'm not clear on what you mean by "use". Fixed-length strings, whether
      ASCIIZ or not, are not implemented as OLE strings. If you manipulate a
      fixed-length string, however, the compiler may need to create temporary
      OLE strings.

      ------------------
      Tom Hanlin
      PowerBASIC Staff

      Comment


      • #4
        Thank you! That's what I needed to know!

        ------------------
        Cheers

        Comment

        Working...
        X