Launch x64 Windows application in C# while the project is set to x86
Posted
by daydr3am3r
on Stack Overflow
See other posts from Stack Overflow
or by daydr3am3r
Published on 2010-06-03T20:26:07Z
Indexed on
2010/06/03
20:44 UTC
Read the original article
Hit count: 240
Hi all I'm trying to launch the osk.exe and I keep getting "Could not start osk" message. The problem is that my project is set to x86 (i'm using a ms access database). If I switch to x64 or Any CPU everything works fine but the database will no longer work. I tried this
using System.Diagnostics;
private void btnOSK_Click(object sender, EventArgs e)
{ Process.Start("osk.exe");
Process.Start(@"C:\windows\system32\osk.exe");
}
I also tried to run SysWOWW\osk but this also didn't work. Besides my application should run on both x86 and x64 machines. Is there any way to bypass this? It's really frustrating.
© Stack Overflow or respective owner