Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/310.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 将进程启动为64位_C#_32bit 64bit - Fatal编程技术网

C# 将进程启动为64位

C# 将进程启动为64位,c#,32bit-64bit,C#,32bit 64bit,我想展示一下屏幕上的键盘。因此,我转到stackoverflow的以下链接: 当我运行针对x64平台的wpf应用程序时,这种技术非常有效。换句话说,当我设置: 但是如果我把它设为86x,它就不起作用了。但我需要以x86运行我的应用程序。我怎样才能解决这个问题?我只是在x64位计算机上运行代码时出现异常 编辑 我有临时解决办法。我解决这个问题的方法是在VisualStudio(控制台应用程序)中创建一个新项目,并命名为FooApplication,目标是x64位版本。该程序看起来像: Clas

我想展示一下屏幕上的键盘。因此,我转到stackoverflow的以下链接:

当我运行针对x64平台的wpf应用程序时,这种技术非常有效。换句话说,当我设置:

但是如果我把它设为86x,它就不起作用了。但我需要以x86运行我的应用程序。我怎样才能解决这个问题?我只是在x64位计算机上运行代码时出现异常

编辑 我有临时解决办法。我解决这个问题的方法是在VisualStudio(控制台应用程序)中创建一个新项目,并命名为FooApplication,目标是x64位版本。该程序看起来像:

Class Program
{
    static void Main()
    {
         System.Diagnostics.Process.Start("osk.exe");
    }
}

然后,我可以从原始wpf应用程序启动计算器my executing FooApplication.exe。

这有帮助吗?可能值得研究一下为什么应用程序不在X86-64上运行,而不是尝试让64位应用程序在32位操作系统下运行。如果32位是一个要求(并且您当前的解决方案不支持),那么您可能需要找到另一个答案。简单明了的64位应用程序在32位操作系统上是不受欢迎的。感谢您的评论。。。我让我的wpf应用程序在86上运行,因为我使用的是一些只在32位体系结构上工作的sqlite dll。如果我不知道在哪里使用这些sqlite dll,那么我不会得到这个错误…听起来你知道问题的真正原因。重新编译64位的sqlite DLL,您应该已经全部设置好了。