我的 Vb.net 应用程序在 32 位 PC 上不断崩溃

发布于 2024-12-03 07:59:50 字数 909 浏览 1 评论 0原文

我的应用程序无法在任何 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.
the error

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 技术交流群。

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

发布评论

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

评论(1

望喜 2024-12-10 07:59:50

检查构建清单。也许您不小心将其保留为 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.

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