RE: how to convert from char * to string
From: Lewis Miller (LewisMiller_at_discussions.microsoft.com)
Date: 01/18/05
- Next message: Peter Huang: "RE: network error 10050 after upgrade"
- Previous message: simmonda: "VB6 Usercontrol gives access violation when handling events"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 Jan 2005 10:01:02 -0800
try this function
Private Declare Function MultiByteToWideChar Lib "kernel32.dll" (ByVal
CodePage As Long, ByVal dwFlags As Long, ByVal lpMultiByteStr As String,
ByVal cchMultiByte As Long, ByVal lpWideCharStr As String, ByVal cchWideChar
As Long) As Long
"sree" wrote:
> hi all,
>
> i am trying to use a vc++ dll i made in vb. i am not much familiar to
> vb.i just want to check if my dll will work in vb also. the function from dll
> returns char *.i decalare a string in vb 'Dim str As String ' and try to get
> the returned value in str. str=func()
> . but when i print it ;here i use MsgBox(str) i am getting only junk value.
> So guys anybody knows how to solve this problem.any method to convert char *
> to string? or a method to convert StrPtr(str) to string will also be fine.
>
> Thanks and regards,sree
- Next message: Peter Huang: "RE: network error 10050 after upgrade"
- Previous message: simmonda: "VB6 Usercontrol gives access violation when handling events"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|