PDA

View Full Version : ActiveQt LPSTR marshalling



Scorp2us
29th April 2008, 21:52
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.

ChristianEhrlicher
30th April 2008, 07:55
LPSTR is nothing more than a char* (ascii ancoded)
LPWSTR is unsigned short* (utf-16 encoded)