PtrSafe キーワードを含む Declare ステートメントが推奨される構文です。 PtrSafe を含むステートメントは、64 ビット数量を格納する必要がある Declare ステートメントのすべてのデータ型 (パラメーターと戻り値) が更新されて、ポインターとハンドルに 64 ビット整数にLongLong を使用する...
VBA: Private Declare PtrSafe Function action Lib "C:\Users\Rick\source\repos\FortDLL\x64\Debug\FortDLL.dll" _ (ByVal functionaddress As LongLong _ ) As Integer Sub exampledllcall() Dim i As Integer Dim vec(1 To 11) As Double Dim ...
●64ビット用VBAのコード Private Declare PtrSafe Sub SweepC Lib "mydll.dll" (ByVal n As Long, ByVal s As Long, ByVal e As Long, ByRef dat() As Double, ByRef res() As Double) Private Sub MatSweep(n As Integer, s As Integer, e As Integer, adbDat() As Double, adbRes() ...
Option Explicit Private Declare PtrSafe Function CLSIDFromString Lib "ole32" (ByVal pString As LongPtr, ByRef pCLSID As Currency) As Long Private Declare PtrSafe Function RegisterWindowMessageW Lib "user32" (ByVal lpString As LongPtr) As Long Private Declare PtrSafe Function SendMessageTimeo...