How to use in VB.NET?

后端 未结 5 1109
星月不相逢
星月不相逢 2020-12-16 10:35

How should I DLLImport things in VB.NET? An example would be:

 _
Private Shared F         


        
5条回答
  •  执笔经年
    2020-12-16 11:04

    I saw in getwindowtext (user32) on pinvoke.net that you can place a MarshalAs statement to state that the StringBuffer is equivalent to LPSTR.

     _
    Public Function GetWindowText(hwnd As IntPtr, lpString As System.Text.StringBuilder, cch As Integer) As Integer
    End Function
    

提交回复
热议问题