Hallo Zusammen,
Aktuell nutze ich die Office-Version 2010 als 64-Bit-Version.
Nun läßt sich meine Software nicht mehr starten.
Unter Allgemein steht folgender Code.
Option Explicit
Option Private Module
Private Declare Sub Sleep Lib "Kernel32" (ByVal Zeit As Long)
Public Declare Function SetWindowPos Lib "user32" ( _
ByVal hwnd As Long, _
ByVal hWndInsertAfter As Long, _
ByVal x As Long, _
ByVal y As Long, _
ByVal cx As Long, _
ByVal cy As Long, _
ByVal wFlags As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" ( _
ByVal hwnd As Long, _
ByVal nIndex As Long) As Long
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( _
ByVal hwnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Als Fehlermeldung bekomme ich:
"Der Code in diesem Projekt muss für die Verwendung auf 64-Bit-Systemen aktualisiert werden. Überarbeiten Sie Declare Anweisungen und markieren Sie sie mit dem PtrSafe-Attribut."
Mit dem Problem stehe ich wie ein Ochs vor dem Berge und habe keine Ahnung was ich machen muss.
Ich hoffe auf Eure Hilfe.
Viele Grüsse vom Bodensee
gert