我的 Vb.net 应用程序在 32 位 PC 上不断崩溃
我的应用程序无法在任何 32 位 PC 上启动。它带来了一个错误。我已经尝试了提到的所有解决方案,例如进入编译和更改平台以及其他事情。
我得出的结论是,这可能只是我的编码有问题。这是我的代码中唯一可以执行此操作的地方。
Declare Auto Sub mouse_event Lib "user32.dll" (ByVal dwFlags As Int32, ByVal dx As Int32, ByVal dy As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As IntPtr)
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Declare Function SetCursorPos Lib "user32.dll" (ByVal X As Int32, ByVal Y As Int32) As Boolean
由于我没有 32 位电脑,我必须依靠某人来解决错误等问题,这就是他发给我的。
EventType: clr20r3 P1: program.exe P2: 1.1.0.0 P3: 4e6422cc
P4: program P5: 1.1.0.0 P6: 4e6422 P7: 33 P8: 22
P9: system.invalidoperationexception
Exception Information
Code: 0xe0434352 Flags: 0x00000001
Record: 0x00000000000000000 Address: 0x000000007c812afb
My app wont start up on any 32bit PCs. It brings an error. Ive tried all the solutions mentioned like going into Compile and changing the Platform, and other things.
I have come to the conclusion it Might just be something faulty with my coding. Here is the only place in my code that could be doing it.
Declare Auto Sub mouse_event Lib "user32.dll" (ByVal dwFlags As Int32, ByVal dx As Int32, ByVal dy As Int32, ByVal cButtons As Int32, ByVal dwExtraInfo As IntPtr)
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Declare Function SetCursorPos Lib "user32.dll" (ByVal X As Int32, ByVal Y As Int32) As Boolean
As i don't have a 32bit pc I have to rely on someone for the errors and such and this is what he sent me.
EventType: clr20r3 P1: program.exe P2: 1.1.0.0 P3: 4e6422cc
P4: program P5: 1.1.0.0 P6: 4e6422 P7: 33 P8: 22
P9: system.invalidoperationexception
Exception Information
Code: 0xe0434352 Flags: 0x00000001
Record: 0x00000000000000000 Address: 0x000000007c812afb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查构建清单。也许您不小心将其保留为 64 位机器而不是 32 位机器。转到“编译”选项卡并检查处理器类型。
Check the build manifest. Maybe you accidentally left it on for 64 bit machines instead of 32 bit. Go to the Compile tab and check processor type there.