没有#define UNICODE 的情况下 VC中的声明 BOOL SetWindowText( HWND hWnd, // handle to window or control LPCTSTR lpString // address of string );vb的声明 Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Longconst char* = LPCSTR = LPCTSTR所以我觉得应该用String
对应的不太清楚,C里面字符串以0结尾,但是VB不是。所以不太懂。
VC中的声明
BOOL SetWindowText(
HWND hWnd, // handle to window or control
LPCTSTR lpString // address of string
);vb的声明
Public Declare Function SetWindowText Lib "user32" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Longconst char* = LPCSTR = LPCTSTR所以我觉得应该用String