thepayne78
New Member
- Joined
- Aug 27, 2019
- Messages
- 3
Okay here is the issue.
Where I work we updating Oracle SmartView to 64bit but before we do that we have to uninstall MS Office 32 bit and install office 64 bit.
I did that and now when he opens the spreadsheet he gets the following message "though Compile error: The code in this project must be updated for use on 64-bit systems. Please Review and update Declare statements then mark them with the PTRSafe Attribute."
The code is below someone informed me all I should have to do is insert PTRSAFE I between Declare and function.
I was just wanting to make sure that is correct. I apologize if I didn't put the code in correctly.
Thank you in advance for you help.
Where I work we updating Oracle SmartView to 64bit but before we do that we have to uninstall MS Office 32 bit and install office 64 bit.
I did that and now when he opens the spreadsheet he gets the following message "though Compile error: The code in this project must be updated for use on 64-bit systems. Please Review and update Declare statements then mark them with the PTRSafe Attribute."
The code is below someone informed me all I should have to do is insert PTRSAFE I between Declare and function.
I was just wanting to make sure that is correct. I apologize if I didn't put the code in correctly.
Thank you in advance for you help.
Code:
Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (pDest As Any, pSource As Any, ByVal dwLength As Long)
Public Declare Function LocalAlloc Lib "kernel32" (ByVal uFlags As Long, ByVal uBytes As Long) As Long
Public Declare Function LocalFree Lib "kernel32" (ByVal hMem As Long) As Long
Public Declare Function GetLogicalDriveStrings Lib "kernel32.dll" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Public Declare Function GetTimeZoneInformation Lib "kernel32" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long
Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long