You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was running the Specs.xlsm sheet in Excel 2010 64bit (14.0.7015.1000) on Windows 7 and ran into the warning about the Declare Functions needing the PtrSafe attribute.
Here is the change for the PreciseTimer class that fixes this issue:
Option Explicit
#If Mac Then
Private pStartTime As Single
#Else
#If VBA7 Then
Private Declare PtrSafe Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As LARGE_INTEGER) As Long
Private Declare PtrSafe Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As LARGE_INTEGER) As Long
#Else
Private Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As LARGE_INTEGER) As Long
Private Declare Function QueryPerformanceFrequency Lib "kernel32" (lpFrequency As LARGE_INTEGER) As Long
#End If
The text was updated successfully, but these errors were encountered:
I was running the Specs.xlsm sheet in Excel 2010 64bit (14.0.7015.1000) on Windows 7 and ran into the warning about the Declare Functions needing the PtrSafe attribute.
Here is the change for the PreciseTimer class that fixes this issue:
The text was updated successfully, but these errors were encountered: