本文介绍了VB.Net应用程序无法在32位计算机上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个很长一段时间制作的应用程序,并且有很多来自其他人的优秀输入。它在64位机器上运行得很好,但在我运行它的32台机器上都有故障。 该应用程序旨在登录OpenDNS网站,并且然后从我的路由器中提取URL访问的历史记录。然后将其转储到CSV文件,然后在排序和删除绒毛后将其保存到Excel。 因为测试这需要一个OpenDNS帐户,所以大家可能很难测试。但是我希望有人可以查看代码,看看他们是否看到了64位与32位机器不同的东西。 它似乎通过第一次调用GetUrlData(data = GetUrlData(URL&" / signin"," GET","")),但是在第二次调用时没有得到任何数据(data = GetUrlData(URL) &" / signin"," POST"," formtoken ="& token&"& username ="& strUser&"& password ="& strPW& "&安培; sign_in_submit = FOO"))。因此,我收到消息请检查您的用户名和密码。)。 这是主要的子...I have an app that is a long time in the making and has had a lot of excellent input from others on. It runs great on 64 bit machines, but breaks down on any of the 32 machines I''ve run it on.The app is designed to log on to the OpenDNS website, and then pull the history of URL visits from my router. It then dumps this to a CSV file, then saves it to Excel after sorting and removing fluff.Because testing this requires an OpenDNS account, it may be hard for you all to test. But I''m hoping someone can look at the code, and see if they see anything that would be different for 64 bit vs 32 bit machines. It appears to get through the first call to GetUrlData (data = GetUrlData(URL & "/signin", "GET", "")), but then doesn''t come up with any data on the second call (data = GetUrlData(URL & "/signin", "POST", "formtoken=" & token & "&username=" & strUser & "&password=" & strPW & "&sign_in_submit=foo")). Therefore, I get the message "Please check your username and password.").Here is the main sub... 展开 | 选择 | Wrap | 行号推荐答案如果它有帮助,我已经使用了一些msgbox来测试这个故障部分中的变量。在第二次调用GetUrlData(data = GetUrlData(URL&" / signin"," POST"," formtoken ="& token&"& username ="& strUser&" ;& password ="& strPW&"& sign_in_submit = foo")),填充所有变量(token,strUser和strPW)。 因此,如果有人对我如何排除故障(一步一步,使用msgbox'等)GetUrlData函数有任何想法,那将会有所帮助。 谢谢, BradIf it helps any, I''ve used some msgbox''s to test the variables in this trouble section. On the 2nd call to GetUrlData (data = GetUrlData(URL & "/signin", "POST", "formtoken=" & token & "&username=" & strUser & "&password=" & strPW & "&sign_in_submit=foo")), all of the variables are populated (token, strUser, and strPW).So if anyone has any thoughts on how I could troubleshoot (step through, use msgbox''s, etc) the GetUrlData Function, that would be helpful.Thanks,Brad程序编译为32位?我是C / C ++世界的一部分,64位程序永远不会在32位机器上运行。只是好奇。The program was compiled as 32-bit? I''m part of the C/C++ world and a 64-bit program will never work on a 32-bit machine. Just curious.感谢您的见解。不幸的是(这是真正的程序员在他们眼中的角色),我没有足够的知识来知道它是如何编译的。我正在使用Visual Studio Express,我从来没有正式编译它以使用自动创建的exe。如果有人深入了解如何在Visual Studio Express中针对32位和64位进行不同的编译,我很满意。 也就是说,遇到麻烦的部分只是出去一个网站,登录和提取数据。为什么在32位和64位之间有任何不同的行为?Thanks for the insight. Unfortunately (this is where the true programmers role their eyes), I don''t have enough knowledge to know how it was compiled. I am using Visual Studio Express, and I never had to formally compile it to use the exe that was automatically created. If someone has insight on how to compile differently for 32 vs 64 bit in Visual Studio Express, I am all ears.That said, the section that is having trouble is just going out to a website, logging in, and pulling data. Why would that act any differently between 32 bit and 64 bit? 这篇关于VB.Net应用程序无法在32位计算机上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-18 10:23