不要在32位窗口上运行我的应用程序 [英] Don't work my application on 32 bit windows

查看:92
本文介绍了不要在32位窗口上运行我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我使用VS2012和SQL Server 2008 R2。然后我制作项目的exe,并将其安装在另一台具有32位窗口的电脑上。我也在其上安装SQL Server 2008 R2。

当我运行应用程序时,将运行第一个表单(获取用户名和密码),但点击OK后,应用程序将关闭。也许这些问题可以从SQL Server访问数据



谢谢



我有什么尝试过:



我不知道这一节:

hello

i use VS2012 AND SQL Server 2008 R2. then i make exe, of project and install it on another pc which have 32 bit windows. i install SQL Server 2008 R2 on it also.
when i run application, first form (which get username and password) will be run , but after click OK, the application will be closed. perhaps the problems are releted to access data from SQL Server

thanks

What I have tried:

I Dont know about this section : "

What have you tried?

推荐答案

猜测,你正在使用访问64位程序集或本机DLL的东西,这是行不通的。



我们无法告诉你如何解决这个问题 - 即使它是32位/ 64位问题 - 因为我们无法运行你的代码。因此,首先构建一个纯32位版本的代码,并确保在您的开发机器上运行。如果没有,则使用调试器找出失败的位置。如果它...在32位机器上尝试它,如果它仍然失败,那么你需要添加一堆日志记录并尝试... catch块来尝试缩小这个失败的确切位置并保存任何错误消息稍后检查。



祝你好运 - 但​​是我们无法为您解决这个问题,您需要收集尽可能多的信息以找出失败的原因!
At a guess, you are using something that accesses a 64 bit assembly or native DLL, and that won't work.

We can't tell you what to do to fix this - even if it is a 32 bit / 64 bit problem - because we can't run your code. So start by building a purely 32 bit version of your code and make sure that works on your dev machine. If it doesn't, then use the debugger to find out where it fails. If it does ... try it on the 32 bit machine, if it still fails, then you need to add a pile of logging and try...catch blocks to try and narrow down exactly where this is failing and save any error messages for checking later.

Good luck - but we can't fix that for you, you need to gather as much information as you can to find out why it's failing!


这篇关于不要在32位窗口上运行我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆