|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
这样你试一下:
Private Declare Sub MoveMemory Lib "kernel32" Alias "RtlMoveMemory" PtrSafe _
(Destination As Any, Source As Any, ByVal Length As LongPtr)
Private Declare Function CLSIDFromString Lib "ole32.dll" PtrSafe _
(ByVal lpszProgID As LongPtr, pCLSID As GUID) As Long
Private Declare Function CoCreateInstance Lib "ole32" PtrSafe _
(rclsid As GUID, ByVal pUnkOuter As LongPtr, _
ByVal dwClsContext As Long, riid As GUID, _
ByRef ppv As LongPtr) As Long
Private Declare Function DispCallFunc Lib "oleaut32" PtrSafe _
(ByVal pvInstance As LongPtr, ByVal oVft As LongPtr, _
ByVal cc As Long, ByVal vtReturn As Integer, _
ByVal cActuals As Long, prgvt As Integer, _
prgpvarg As LongPtr, pvargResult As Variant) As Long
Private Declare Sub CoTaskMemFree Lib "ole32" PtrSafe _
(pv As LongPtr) |
|