c# - 64 位应用程序启动 32 位进程

标签 c# process 32bit-64bit bit

我正在开发一个使用 .Net 4.0、C# 编码的 64 位应用程序。

在此应用程序中,有时我需要使用以下代码启动另一个 exe 文件:

l_process.StartInfo.FileName = _sFullFilePath;
l_process.StartInfo.Verb = "Open";
l_process.StartInfo.CreateNoWindow = true;
l_process.StartInfo.Arguments = l_sParams;

l_process.Start();

现在,这个外部应用程序在 32 位环境 (x86) 下编译,我得到以下错误:

**The specified executable is not valid for this OS platform**

有可能这样做吗?如果是,我怎样才能顺利地从我的应用程序启动这个应用程序?

最佳答案

通常,在 64 位机器上运行 32 位程序不需要额外的工作。

  1. 尝试单独运行 32 位程序。
  2. 阅读:http://www.techsupportalert.com/content/how-windows7-vista64-support-32bit-applications.htm

关于c# - 64 位应用程序启动 32 位进程,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8489871/

相关文章:

运行脚本后 pythonw.exe 进程不退出

c# - COM DLL 依赖项中静态 DLL 数据的多个进程和拷贝

c - 使用 execlp 的简单 shell 变得很奇怪

python - 通过 Pyodbc 连接到 Oracle ODBC(32 位与 64 位)

c# - 为 64 位 dll 创建 32 位包装器。这可能吗?

c# - 实体类型的属性是键的一部分,因此不能修改或标记为已修改

c# - 以编程方式转到不同 View 的按钮? C#(xamarin)

c - memset 的 64 位 Linux 性能问题

c# - 在 C#4.0 中使用 RowFilter 在 DataView 中过滤数字

c# - 仅比较 Entity Framework 6 中日期时间的时间与 odp.net Oracle 12c