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;
</pre>

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

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

1 solution

You can use Char in vb.net 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