Delphi 10.4: Connection to a MS Access 2019 Database - delphi

After repairing a crashed MS Office 2019 I did not manage to reinstall the correct MS-Access database driver for my ADO Connnections on a X64 Win11 system.
I tried to install alternatively the database engines 2010 and 2016, but neither of them was shown.
Does anyone have a hint?
Oswald

Solution:
Download 32-bit Driver
From command-line: Driver.exe /passive
Oswald

Here a longer description of the way to a solution:
My skills are just scratching the surface, I'm afraid. What I know: The IDE of Delphi 10.4 is 32-bit und doesn't work with the 64-bit database engine of Microsoft.
The complete process for getting a working system has been:
Download both (32-bit and 64-bit) drivers
First install the 64-bit driver (not shown in IDE)
Then install from command-line 32-bit driver: accessdatabaseengine.exe /passive
Trying to install a 32-bit driver on a 64-bit Win11-system will raise an error, while not having installed the 64-bit driver first.
Maybe somebody is able to explain this in more depth. I am not…
Oswald

Related

Delphi XE installation of Jedi JCL 2.6 on Win8 (x64)

So I have Delphi XE (no number) and I have a project that was built on another machine (using JVCL components). Now, my machine is a Windows 8.1 (64 bits), and the previous machine was Windows XP (32 bits).
Of course I want to be able to continue developing the app, but for that I need the JCL/JVCL to be installed here too.
Now comes my problem. When I run the installer (bat) of JCL, it starts ok, but it does not show any options, so when I click the Install button nothing happens, and I get a message saying the installation finished. But of course nothing is installed.
This is how the installer looks on my x64 machine:
What can I do to install this JCL on a win64 machine? I am very sure that this is the problem: the OS. Because on 32bit OS (Windows XP) I have no problem installing it.
I looked it up, but could not find a straightforward solution. There might be a problem with some registry where the installer looks for the location of Delphi ?!?! but I have no idea how to fix it.
I need to install the JVCL, but it wont install unless I have JCL installed first... and the JCL does not install
Please help me.
Thank you

Postgresql with Zeos: libpq is not found or not loadable on win 7 64

I have PostgreSQL 9.2 installed on win 7 64 and can connect to it with ODBC from my delphi IDE using dbexpress with no problem. When I try to connect using Zeos, and although I have provided the path to the libpq.dll, I still get the error (libpq not found or not loadable). I tried all solutions I found by googling but so far I haven't found a working solution.
I have put the dll, and later all dlls into system32 to even see if that is what it takes.
This is my setup:
Delphi XE3
Zeos 7
PostgreSQL 9.2
On windows 7 64
Does anyone use this system and can connect to postgresql 9.2 with zeos?If so what am I missing?
So my question summarized in one line is this:
What is a working configuration/steps to connect zeos 7 with postgresql on delphi on win 7 64?
Your answer is much much appreciated!!
Make sure you have the following files together with libpq.dll:
libeay32.dll, libiconv.dll, ssleay32.dll, libintl.dll, libxml2.dll,
and libxslt.dll. These are library files that lipq.dll depends on. Delphi IDE is 32bit so you can only use the 32bit version of the above libraries if you want to connect to postgresql at design time. If your project is 64bit you may get the 64bit version of the files above and place it in a separate folder under your project's root dir then change the libpq.dll path of ZConnection at runtime to point to that folder.
Hope this helps.
Are you sure your ZeosLib is x64? When building component, make sure you choose 64-bit Windows as Target Platform.
Most likely the computer where the problem is happening lacks Microsoft Visual C++ 2010 Redistributable x64. I adivise you to download it from Microsoft and install it, then run another test.
I had the same problem. To get around this, I had to change the working directory of the delphi application to the path of libpq.dll because otherwise it will not be able to find the other libraries, it needs. So maybe you want to do something similar to this before opening the first connection to postgresql:
OldPath := ExtractFilePath(Application.ExeName);
ChDir('c:\path\to\libpq\dll\');
ZConnection.Connect;
ChDir(OldPath)

RailsInstaller on Windows 7 64bit?

I tried to use the Rails Installer to get a ruby on rails environment on my Windows 7 64bit today and the .exe won't run because it's made for 32bit instead of 64bit.
Update When I try to start the installer, this message pops up:
Here is the translation:
This version of the file is not compatible with the running version of Windows.
Open the system information of the computer to check if a x86 (32bit) or x64
(64bit) version of this application is neccessary and contact the software vendor.
Is there a 64bit alternative for the installer?
64bits Windows can run 32bits applications, that is what WOW64 layer provides (Windows on Windows)
However, there are specific things you can't perform, like accessing OLE or using 64bits DLLs from 32bits applications or viceversa.
If the issue you're having is connect to a MySQL installation (something you're not mentioning) you should take a look to this blog article:
http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/
Hope that helps.

Advantage .NET Data Provider fails in an SSIS package?

I have installed the Advantage .NET Data Provider Release 9.0 for Windows
64-bit on a Windows 2008 R2 64-bit server. I am using SQL Server 2008 R2. I am using the Advantage Data Provider within a Microsoft SSIS package. When I try to transfer data I get
the error "System.DllNotFoundException: Unable to load DLL 'ace32.dll':
The specified module could not be found."
I am purely guessing at this point, but I think this should help.
Unfortunately with the 9.x version of the .Net provider only the 32-bit version of ACE was deployed. In addition, no clients included the 64-bit version of ACE.
(side note, in 9.x the 64-bit version of ACE was still named ace32.dll, but in 10.x it was changed to ace64.dll and is deployed with all clients that support 64-bit)
Try downloading the 64-bit version of the Advantage Server (see link below to 9.0). The install is just a self extracting zip, extract the contents (don't install) and grab the ACE32.dll and AXCWS32.dll (both are 64-bit dlls). Replace the 32-bit versions of ACE32.dll on the system (most likely placing them in the System folder).
http://devzone.advantagedatabase.com/dz/content.aspx?key=20&Release=12&Product=25&Platform=9
Edgar is correct, I had to copy the two files from the install and put them into C:\Windows\System32.

Compiling with Delphi 2009 from a command line under Windows Vista 64-bit

Has anyone succeeded to compile a Win32 GUI app with the command line dcc32.exe compiler, under 64-bit Windows Vista, without installing Delphi 2009? On our system it fails, with a message that the DFM files contain unknown 16-bit resources. This is usually an indication that the DFM files cannot be read. It works perfectly on all 32-bit Vista and Windows XPs, that we tried.
I am asking, because we want to ensure that we can rebuild our current exe files later, if needed, so even if we all switch to 64-bit OSes in the future, we want to be able to rebuild the old 2009 versions.
With Delphi 2009 you should use msbuild to commandline compile your projects (msbuild YourProject.dproj). Be sure to do this from the RAD Studio commandprompt. This ensures some environment variables are set. Does this solve your problem?
Adding lnkdfm120.dll solved the problem.
Yes, we are performing console builds via dcc32 through nant in both Vista 64-bit and Windows 2008 64-bit. You may have to deal with some path issues the (X86) if you installed to the default location (we do not to remove these types of dependencies).

Resources