Boa Noite, Caros
Estou tentando fazer um comando para que a macro identifique a versão do windows e aplique a formula, porem ocorre o seguinte erro.
"ERRO DE COPILAÇÃO, ERA ESPERADO O FIM DA INSTRUÇÃO
Segui...
Private ptrsafe Function FindWindow Lib "User32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) as longptr
Private ptrsafe Function GetWindowLong Lib "User32" Alias "GetWindowLongA" (ByVal hwnd as longptr, ByVal nIndex as longptr) as longptr
Private ptrsafe Function SetWindowLong Lib "User32" Alias "SetWindowLongA" (ByVal hwnd as longptr, ByVal nIndex as longptr, ByVal dwNewLong as longptr) as longptr
Private ptrsafe Function DrawMenuBar Lib "User32" (ByVal hwnd as longptr) as longptr
#If Win64 Then
Public Indice As LongPtr
#Else
Public Indice As Long
#End If
Postado : 23/02/2016 2:34 pm