Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have a Dll written in Delphi having an exported functions as follows

<pre lang="Delphi">
Function layoutToUni (IpStr : PChar; OpStr : PWord; LangName : LongInt; AFontType, BFontType : LongInt ) : PChar;

I am calling this function from want a compatible data type in for delphi data type pWord.The above function gives me Unicode text (in OpStr variable) which I want to catch in am using String for this but it is giving me blank string.

Any idea how to do it?
Thanks in advance.
Updated 14-Nov-11 0:49am

1 solution

You can use Char in which represents a 16 bit Unicode character and therefor fits perfectly.

Good luck!
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900