DrawText哪里错用了啊
VB 6.0里
声明:
Private Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hdc As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
DrawText vbNull, windowhandle, b, d, RECT1, "DT_LEFT"
b是字符串 string
d应该大于等于b的长度,long型的.
可是运行时说ByRef arguement type missmatch
可是声明里说是长型啊,而且是直接引用啊