r_keya

r_keya

  • NA
  • 9
  • 0

Convert to C# code from Vb.Net

Sep 15 2004 11:38 AM
I have this function in Vb.net. Public Function GMString(ByVal strPtr As GMWStr) As String Dim strlen As Integer Dim strBuf() As String strlen = lstrlen(strPtr.Ptr) If strlen = 0 Then Exit Function ReDim strBuf(strlen - 1) CopyMemory(strBuf(0), strPtr.Ptr, UBound(strBuf) + 1) GMString = StrConv(strBuf(0), VbStrConv.None) End Function I need to know what the code will be in C#. TIA -- Keya Roychoudhury Developer Integration Wizard www.integrationwizard.com

Answers (3)