Launch x64 Windows application in C# while the project is set to x86
- by daydr3am3r
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.