Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone,

Please see below code.

Visual basic 6.0>

VB
Private Declare Function ReadAppString Lib "ApplicationString.dll" Alias "ReadApplicationString" _
(ByVal AppName As String, ByVal VersionName As String ) As Boolean


As in above method (ReadApplicationString) parameters are of String type that is ASCII version.

However,in ApplicationString.dll, ReadApplicationString() method parameters type are of WCHAR type ( unicode version).

As there is mismatch in signature, I see AppName, VersionName parameters are not able to accommodate wchar characters.

Query: How to accommodate unicode characters in VB, basically, Iwould like to know which data type should be used here.
Please share your ideas.


Regards,
Joy
Posted
Comments
Sergey Alexandrovich Kryukov 9-Dec-13 10:52am    
I'm not getting it: VB6 or VB.NET? VB6 does not support anything, I would say, it does not support programming... :-)
—SA

1 solution

For vb6, maybe StrConv can help you out (check link). But I think you really need to consider ending the vb6 adventure.
http://msdn.microsoft.com/en-us/library/aa263373%28v=vs.60%29.aspx[^]

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