javascript - Vista x64, gadget development, OLEDB problem: "provider cannot be found" -


I am developing a Vista gadget. This gadget is working with the local .mdb database, used OLDB. The code is as follows:

  var cs = "provider = Microsoft.ACE.OLEDB.12.0; data source =" + getDbFilePath () + "; security information = false;" ;;; Var Connection = New ActiveXObject ("ADODB.Connection"); Connection.ConnectionString = cs; It works under Vista 32, but with the message fails under x64:  The provider can not be found. It can not be installed properly.  

When I'm running a javascript file from the command line, there is no error. getDbFilePath () returns the correct path, the database exists etc.

How to fix it? Maybe, there is another means to use the database provider?

Thank you

There is no original jet image available for registered / x64 - It is only available in 32-bit processes on x64 Sidebar executable is being executed as the original x64 image - so it fails.

Your choices are limited:

  1. Leave on Jet, e.g. Switch to SQL Compact Edition, SQL Express or similar
  2. Wrap Jet Jet in a surrogate 32-bit com object. Register the item as an out-of-process in the 64 bit registry eg

  3. No x64 support

The sidebar is forced to run in 32 bit mode Trying to do

looks so difficult / impossible

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -