TI-994A wrote:If PureBasic is not displaying its own strings in its own message box properly
PB does display everything correctly in its
own message box, as proven by the blue box in the screenshot. in case you are confused by the code snippet i posted earlier: it is missing the debug messagebox and the rearranged static strings etc... it is not up to date anymore.
TI-994A wrote:All corresponding modules must be compiled on the same architecture (32bit or 64bit)
naturally. everything is 32bit right now.
TI-994A wrote:and must also be configured for the same character set; UNICODE for your requirements
that is not possible. I need to translate at some point, as my target program expects its strings to be UTF-8 and sends out strings as UTF-8.
PB 5.24 LTS x86 has the "Unicode" (I suppose UTF-16) checkbox set in the compiler options. So PB "translates" the input string from UTF-8 using PeekS(). This part works.
I guess the returned string (PB to MSVS) is still Unicode UTF-16 and not UTF-8, as I need it to be. So I suppose my final question is this, can I return a UTF-8 string instead of an UTF-16 string from the PB DLL? or do I have to take a detour and e.g. send the memory address where i PokeS()'ed the UTF-8 string?
thanks for all your efforts.