Results 1 to 2 of 2

Thread: ActiveQt LPSTR marshalling

  1. #1
    Join Date
    Apr 2008
    Posts
    45
    Thanks
    3
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default ActiveQt LPSTR marshalling

    Does anyone know how to use LSTR with the ActiveQt stuff? I have a custom marshalled interface and the ActiveQt stuff only supports BSTR (OLE wide chars) but this is an 8-bit string. I somehow need to get th Qt stuff to take the LPSTR and not have Qt Complain "QAxBase: Unhandled type LPSTR"

    Suggestions?
    I can't change the interface.

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: ActiveQt LPSTR marshalling

    LPSTR is nothing more than a char* (ascii ancoded)
    LPWSTR is unsigned short* (utf-16 encoded)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.