windows 64位问题

发布于 2024-09-03 11:27:00 字数 347 浏览 3 评论 0原文

我使用 C# VS 2008 和 Sql 2005 Express 开发了一个 Windows 应用程序, 我已经在我的机器上测试了该应用程序,它运行良好, 我的机器是 win32 位,当我在 Windows 64 位上尝试该应用程序时,它在应用程序启动时不断给我一条错误消息,尽管我在那台机器上安装了 sql express 但我也应该安装 .NETframwork3.5sp1 64 位吗? ,目标机器是widows 7 64bit, 还有一种技术或方法可以使应用程序按以下顺序运行: 1- CD 自动运行 2- 安装程序会检查已安装的先决条件并安装任何必要的先决条件,而无需用户干预。 最后一个问题,我应该在 64 位机器上重建应用程序以使其在 64 位机器上运行吗? 谢谢

I have developed a windows application using C# VS 2008 and Sql 2005 express,
i have testes the application on my machine and it works fine,
my machine is win32 bit, when i tried the application on windows 64bit it keeps giving me an error message on the start of the application,although i installed the sql express on that machine
but should i install .NETframwork3.5sp1 64 bit also? , the target machine is widows 7 64bit,
also is there a technology or a way to make the application work in the following sequence:
1- the CD is auto run
2- the setup checks for the installed prerequists and install any necessery one without the interference of the user.
one last question,should i rebuild the application on an 64 bit machine to make it work on 64 bit machine?
thankx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜`诱少女 2024-09-10 11:27:00

在构建设置中,从“任何 CPU”更改为“Win32”。您很可能使用一些本机 API 调用来加载本机 DLL。您无法将 32 位 DLL 加载到 x64 进程中,因此,如果 .NET 将应用程序扩展到 64 位,那么加载将会失败。使用 Win32 设置进行编译将阻止目标计算机上的 .NET 扩展应用程序。

In your build Settings, change from "Any CPU" to "Win32". You most propably use some native API calls which will load native DLL's. YOu can't load a 32bit DLL into a x64 process, so that will fail, if .NET scales your application up to 64 bit. Compiling with the Win32 setting will prevent .NET on the target mashine to scale your application up.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文