Error When open As Win64

bhelmy

Registered User.
Local time
Today, 02:35
Joined
Dec 6, 2015
Messages
62
please help me to chang this cod

Option Compare Database
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
Public Const SW_SHOW = 1


Error when chang from win32 to win64
 
you add PtrSafe:

Public 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
 
where i am not perfeck in VB thx
 

Users who are viewing this thread

Back
Top Bottom