|
-
Dec 4th, 2001, 08:48 AM
#1
Thread Starter
New Member
CString::GetLength
Hello,
I've a quick question:
How can I determen the length of a string passed from a VB program. I started out with a verry simple function that returns the lenth of a string. (The equvilant of Len() in vb). But it does'nt work.
int test(CString input)
{
return input.GetLength();
}
and the VB code:
Declare Function test Lib "myDll" (ByVal str As String) As Integer
Private Sub Command1_Click()
MsgBox test("1234")
End Sub
The result is a messagebox containing "-6038" ?!?!?!?
I'm (developing) with Embedded visual studio 3.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|