![]() |
#1
|
|||
|
|||
![]()
Ive searched to see if anyone was having trouble using their 32-bit macros in X6 or X7 64-bit. I didn't find much. I was however having trouble with my old macros and have been searching for a solution.
I found a solution in the Help file in the Macro Editor under the 64-Bit Visual Basic for Applications Overview which basically says that the Declare statements for win32 API calls must be modified as follows: Code:
Public Declare PtrSafe Function GetCursorPos Lib "user32" (ByRef pos As lpPoint) As Boolean Private Declare PtrSafe Function CreateEvent Lib "kernel32" Alias "CreateEventA" _ (ByVal lpEventAttributes As LongPtr, ByVal bManualReset As LongPtr, _ ByVal bInitialState As LongPtr, ByVal lpName As String) As LongPtr Just thought I would share just in case anyone was have trouble. |
#2
|
||||
|
||||
![]()
Thanks, that's a good info to share. Also, to get 64-bit compatible declarations of Win32 functions, I use this: http://www.microsoft.com/en-us/downl...s.aspx?id=9970
When installed it, puts a text file with all the Win32 declarations into C:\Office 2010 Developer Resources\Documents\Office2010Win32API_PtrSafe\Win32API_PtrSafe.txt Very handy |
#3
|
|||
|
|||
![]()
Very cool file. Thanks for the link!
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Disabled macros? | djenous | Macros/Add-ons | 4 | 12-07-2012 12:01 |
CurveEffects macros for x5 | gorgo | Macros/Add-ons | 0 | 14-08-2010 23:21 |
X3 macros used in X4 | CWCN | CorelDRAW/Corel DESIGNER VBA | 1 | 04-11-2009 13:25 |
my macros for corel | Feidias | CorelDRAW/Corel DESIGNER VBA | 0 | 08-08-2008 07:44 |
2 Macros 1 Button | vindaa | CorelDRAW/Corel DESIGNER VBA | 4 | 11-04-2008 21:24 |