C++函数声明转换VB
本帖最后由 vbbaris 于 2012-09-07 14:19:37 编辑 这是MSDN找到的ScriptStringAnalyse函数的声明,不过这是C++的。我一点都不知道C++,那位高手能把他转换为VB声明格式?
如果能说明更好。谢谢
HRESULT ScriptStringAnalyse(
_In_ HDC hdc,
_In_ const void *pString,
_In_ int cString,
_In_ int cGlyphs,
_In_ int iCharset,
_In_ DWORD dwFlags,
_In_ int iReqWidth,
_In_opt_ SCRIPT_CONTROL *psControl,
_In_opt_ SCRIPT_STATE *psState,
_In_opt_ const int *piDx,
_In_opt_ SCRIPT_TABDEF *pTabdef,
_In_ const BYTE *pbInClass,
_Out_ SCRIPT_STRING_ANALYSIS *pssa
);
[解决办法]
Declare Function ScriptStringAnalyse Lib "你的DLL名称" (ByVal hdc As Long, _
ByRef pString As Any, _
ByVal cString As Integer, _
ByVal cGlyphs As Integer, _
ByVal iCharset As Integer, _
ByVal dwFlags As Long, _
ByVal iReqWidth As Integer, _
ByRef psControl As Any, _
ByRef psState As Any, _
ByRef piDx As Any, _
ByRef pTabdef As Any, _
ByRef pbInClass As Any, _
ByRef pssa As Any) As Long