How to use in VB.NET?

后端 未结 5 1114
星月不相逢
星月不相逢 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:02

    You can also try this

    Private Declare Function GetWindowText Lib "user32.dll" (ByVal hwnd As IntPtr, ByVal lpString As StringBuilder, ByVal cch As Integer) As Integer
    

    I always use Declare Function instead of DllImport... Its more simply, its shorter and does the same

提交回复
热议问题