ECAD CADWorx Database 64-bit

With the help of Rod Abbott, we’ve been able to fix up the ECAD Database for CADWorx to run on 64-bit.  For those of you who are curious, this is a compatibility issue we had to address.  Incidentally, the code posted will fix the out of the box database for CADWorx too.

#If VBA7 Then
Private Declare PtrSafe 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
#Else
    Private 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
#End If

Replaces:

Private 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

Starting at the second row in the modFunctions vba module.

To interpret this code handles two scenarios, computers that don’t understand VBA7 (they’re 32-bit anyways), and 64-bit/VBA7 computers.  Because 64-bits are now available, VBA7 requires people who want to be compliant on 32-bit and 64-bit to use the PtrSafe attribute.

This link to the product will let you download the latest version or order it for free!

Those that have already ordered, should be able to download it from the page.  Otherwise, feel free to order it and you should get an email for download shortly.

image