DLL File for windows 7 64bit

时光怂恿深爱的人放手 提交于 2019-12-06 23:33:20

问题


I'm porting my Windows XP application (wrote with C#) to Windows 7 application. Now I'm using sqlite3.dll on my XP App (32bit) and I would download sqlite3.dll for 64bit machine. For my purpose I've moved sqlite3.dll on my /bin folder and, obviously, when I try to start my app on windows 7 I receive an error. So, where I download this file?

Please, help me...

Edit: I've downloaded sqlite3 http://www.sqlite.org/download.html


回答1:


The SQLite website only has the 32-bit .dll, to get a 64-bit one you'll have to download and compile the source yourself.

Since you're using C#, an easier way is to use System.Data.SQLite ( http://sqlite.phxsoftware.com/ ). They have a 64-bit download available, which is SQLite itself and their ADO.NET provider combined into one .dll. It's the easiest way to use SQLite on Windows with C# I think.

Update: New download URL is http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki




回答2:


bin/x64 directory contains 64-bit NATIVE DLL, named System.Data.SQLite.dll which is SQLITE3.dll compiled for AMD64/X86_64 platforms. The url is: http://sourceforge.net/projects/sqlite-dotnet2/files/SQLite%20for%20ADO.NET%202.0/1.0.66.0/ (IF it was you`re looking for).




回答3:


  1. Download SQLite-1.0.66.0-setup.exe from http://sourceforge.net/projects/sqlite-dotnet2/files/SQLite%20for%20ADO.NET%202.0/1.0.66.0/
  2. Run this executable will create a folder under C:\Program Files (x86)\SQLite.NET
  3. Pick the System.Data.SQLite.DLL from bin/x64 and renamed it to sqlite3.dll -- and you are good to go.



回答4:


For your case, since your app was already written, you won't want to rewrite it. You can simply recompile your .NET project targeting to 32 bit.

Right click your project-> properties -> build -> platform target : x86

64 bit app can only run on 64 machine while 32 bit app can run on both.



来源:https://stackoverflow.com/questions/3839669/dll-file-for-windows-7-64bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!