64位SQLite.dll和任何CPUSQLite、CPU、dll

2023-09-07 22:59:13 作者:潦倒烟民

我终于决定后一个问题在这里过了一段时间花在试图找出这个问题。前几天我张贴同样的问题在sqlite的论坛,但该网站目前无法使用。 http://sqlite.phxsoftware.com/forums/t/2669.aspx

I finally decided to post a question here after some time spent trying to figure out this problem. A few days ago I posted this same question on sqlite forum but that website is currently not available . http://sqlite.phxsoftware.com/forums/t/2669.aspx

所以,这里的问题: 我有64位计算机,64位操作系统。一位同事有64位计算机,32位操作系统。我们开发一个Web应用程序从服务器带来了大量的数据,并保持它在内存中的SQLite数据库,所以一切都可以跑得更快。现在我们使用在两台机器上32位SQLite.dll。然而,我们要切换到64位的DLL(并提高数据我们可以使用和储存量)。 //system.data.sqlite:我从 HTTP下载.ORG / index.html的/ DOC /主干/网络/ downloads.wiki 如下因素文件:sqlite的-的dotnet-x64-1007300.exe和instaled我的机器上。我把System.Data.Sqlite.dll和System.Data.Sqlite.Linq.dll到lib文件夹,而我抄Sqlite.Interop.dll成BIN \ Debug文件夹。 当我使用任何CPU一切调试应用程序工作正常,我的机器上,但是,我的同事也越来越错误。

So, here is the question: I have 64-bit computer with 64-bit OS. A co-worker has 64-bit computer with 32-bit OS. We develop a web application that brings a lot of data from server and keeps it in memory SQLite database, so everything can run faster. Right now we use 32-bit SQLite.dll on both machines. However we want to switch to 64-bit dll (and increase amount of data we can use and store). I have downloaded from http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki folowing files: sqlite-dotnet-x64-1007300.exe and instaled on my machine. I have placed System.Data.Sqlite.dll and System.Data.Sqlite.Linq.dll into lib folder, while I have copied Sqlite.Interop.dll into bin\Debug folder. When I debug application by using Any CPU everything works fine on my machine, however, my co-worker is getting errors.

我想用64位的DLL和使用任何CPU构建的exe文件,如果系统是32或64。不要担心这可能吗?如果这是我应该做的,以实现这一目标? 提前致谢!

I want to use 64-bit dll and build exe file using Any CPU and not worry if the system is 32 or 64. Is that possible? And if it is what I should do to accomplish that? Thanks in advance!

P.S。我们使用C# - Visual Studio 2008的3.5 SP1

P.S. We use C# - Visual Studio 2008 3.5 SP1

推荐答案

我想,你必须同时包括32位和64位SQLite.dlls,并安装一个或另一个取决于目标体系结构。

I guess that you'll have to ship both 32 bit and 64 bit SQLite.dlls, and install one or the other depending on the target system architecture.