Imam bazu koja je rađena u 32-bitnom MS Office-u 2010 a sada koristim 64-bitni MS Office 2016. Prilikom otvaranja pojedinih formi javlja mi se sledeći problem:
"Compile error:
The code in this project must be updated for use in 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe atribut."
Deklaracija je sledeća:
Option Compare Database
Option Explicit
'Option Compare Database
'Option Explicit
Declare Function wu_FindWindow Lib "User32" Alias "FindWindowA" (ByVal sImeKlase As String, ByVal hImeProzora As Long) As Integer
Declare Sub wu_setWindowText Lib "User32" Alias "SetWindowTextA" (ByVal hWin As Integer, ByVal sTekst As String)
Dim naziv, Naslov, poruka As String
Dim DgDef As Integer
Dim Odgovor As Variant
Global PathPodataka, NazivAplikacije, NazivBazePodataka, IsServer, SifraKorisnika As Variant
Global NaslovnaPoruka As String
Šta je potrebno izmeniti u njoj da bi baza radila i u 32-bitnom i u 64-bitnom sistemu?
"Compile error:
The code in this project must be updated for use in 64-bit systems. Please review and update Declare statements and then mark them with the PtrSafe atribut."
Deklaracija je sledeća:
Option Compare Database
Option Explicit
'Option Compare Database
'Option Explicit
Declare Function wu_FindWindow Lib "User32" Alias "FindWindowA" (ByVal sImeKlase As String, ByVal hImeProzora As Long) As Integer
Declare Sub wu_setWindowText Lib "User32" Alias "SetWindowTextA" (ByVal hWin As Integer, ByVal sTekst As String)
Dim naziv, Naslov, poruka As String
Dim DgDef As Integer
Dim Odgovor As Variant
Global PathPodataka, NazivAplikacije, NazivBazePodataka, IsServer, SifraKorisnika As Variant
Global NaslovnaPoruka As String
Šta je potrebno izmeniti u njoj da bi baza radila i u 32-bitnom i u 64-bitnom sistemu?