|
|
发表于 2007-7-20 20:59:00
|
显示全部楼层
Re:啊,弄清楚如何动态的调用API了。
Case "STRING"
StoreStringsCount = StoreStringsCount + 1
ReDim Preserve StoreStrings(StoreStringsCount)
Dim tmpstring As String
tmpstring = GetSide(Mid$(Parameter, 1, InStr(1, Parameter, ",") - 1), " ", True)
Dim nLength As Long
nLength = Len(tmpstring)
If ConvertFromUnicode Then
ReDim StoreStrings(StoreStringsCount).Value(nLength + 1)
tmpstring = StrConv(tmpstring, vbFromUnicode)
CopyMemory StoreStrings(StoreStringsCount).Value(0), ByVal (StrPtr(tmpstring)), nLength
Else
ReDim StoreStrings(StoreStringsCount).Value(nLength * 2 + 1)
CopyMemory StoreStrings(StoreStringsCount).Value(0), ByVal (StrPtr(tmpstring)), nLength * 2
End If
Params(ParamsCount) = VarPtr(StoreStrings(StoreStringsCount).Value(0))
|
|