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