Pocket PC エミュレーターの vc2005 でこのコードを実行しようとしていますが、win32unhandled 例外が発生します。
private void button1_Click(object sender, EventArgs e)
{
System.Diagnostics.Process Proc = new System.Diagnostics.Process();
Proc.StartInfo.FileName = @"WM_flowm.exe";
Proc.Start();
}
WM_flowm.exe は Windows モバイルで問題なく実行できる flite tts ですが、C# コードで呼び出す必要があります。
コールスタック
System.dll!System.Diagnostics.Process.StartWithShellExecuteEx(System.Diagnostics.ProcessStartInfo startInfo = {System.Diagnostics.ProcessStartInfo}) + 0xcb bytes
System.dll!System.Diagnostics.Process.Start() + 0x3f bytes
ここで止まった===
try_DLL.exe!try_DLL.Form1.button1_Click(object sender = {Text = "button1"}, System.EventArgs e = {System.EventArgs}) 29 行目 + 0x6 バイト C#
System.Windows.Forms.dll!System.Windows.Forms.Control.OnClick(System.EventArgs e = {System.EventArgs}) + 0x15 bytes
System.Windows.Forms.dll!System.Windows.Forms.Button.OnClick(System.EventArgs e = {System.EventArgs}) + 0x32 bytes
System.Windows.Forms.dll!System.Windows.Forms.ButtonBase.WnProc(Microsoft.AGL.Forms.WM wm = WM_BUTTON_NOTIFYCLICKED, int wParam = 0, int lParam = 0) + 0x17 bytes
System.Windows.Forms.dll!System.Windows.Forms.Control._InternalWnProc(Microsoft.AGL.Forms.WM wm = WM_BUTTON_NOTIFYCLICKED, int wParam = 0, int lParam = 0) + 0x9 bytes
System.Windows.Forms.dll!Microsoft.AGL.Forms.EVL.EnterMainLoop(System.IntPtr hwnMain = 1114117)
System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.Form fm = {try_DLL.Form1}) + 0x1a bytes
try_DLL.exe!try_DLL.Program.Main() Line 15 + 0xa bytes C#