Discussion:
deklaracje z 2000 nie działają w nowszych wersjach
(Wiadomość utworzona zbyt dawno temu. Odpowiedź niemożliwa.)
Phantom
2020-11-23 12:56:32 UTC
Permalink
Witam
dotyczy: msaccess2016/19

Mam problem z deklaracjami działającymi w msaccess2000 a nie działającymi w nowych wersjach:

Public Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Public Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, _
ByVal Y3 As Long) As Long
Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, _
ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, _
ByVal nCombineMode As Long) As Long
Public Declare Function SetWindowRgn Lib "user32" (ByVal hwnd As Long, _
ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long

Proszę o pomoc
Tomek
Zbigniew Bratko
2020-11-23 16:52:05 UTC
Permalink
Post by Phantom
Witam
dotyczy: msaccess2016/19
Public Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long
Public Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, _
ByVal Y3 As Long) As Long
Declare Function CombineRgn Lib "gdi32" (ByVal hDestRgn As Long, _
ByVal hSrcRgn1 As Long, ByVal hSrcRgn2 As Long, _
ByVal nCombineMode As Long) As Long
Public Declare Function SetWindowRgn Lib "user32" (ByVal hwnd As Long, _
ByVal hRgn As Long, ByVal bRedraw As Boolean) As Long
Jeżeli masz wersję 32-bitową to może wystarczy w deklaracjach przed
instrukcją Function umieścić kwalifikator PrsSafe

Public Declare PtrSafe Function ...

jeżeli masz 64-bitową wersję MS Access to masz większy problem ;-(
--
Pozdrawiam
Zbigniew Bratko
accdb.pl
gps.accdb.pl
Phantom
2020-11-23 19:11:26 UTC
Permalink
Loading...