http://bugs.winehq.org/show_bug.cgi?id=7410
------- Additional Comments From ravinderonline@yahoo.com 2007-13-02 05:50 ------- Dear Hans Leidekker,
Thanks for such a quick response. I made a test application in VC++ for launching the pdf help. I have pasted the function responsible for launching the help.
void CMainFrame::OnHelp() { MessageBox("140"); long temp = (long)ShellExecute(NULL, "open", "Thai.pdf", NULL, NULL, SW_SHOW); CString strTemp1; strTemp1.Format("%d", temp); MessageBox(strTemp1,MB_OK); }
I ran the application as WINEDEBUG=exec <exec_name>
Its giving me the following messages on console. As per the output i feel association is done properly but shell execute is returning 2 that mean file not found. Although i have pasted the file properly.
[amita@rm nexusexec]$ wine pdfhelp.exe trace:exec:ShellExecuteA (nil),"open","Thai.pdf",(null),(null),5 trace:exec:ShellExecuteExA 0x33fa84 trace:exec:SHELL_execute mask=0x00000000 hwnd=(nil) verb=L"open" file=L"Thai.pdf" parm=(null) dir=(null) show=0x00000005 class=not used trace:exec:ShellExecute_FromContextMenu L"Thai.pdf" trace:exec:ShellExecute_GetClassKey ext = L".pdf" trace:exec:ShellExecute_GetClassKey class = L"pdffile" trace:exec:SHELL_execute execute:L"Thai.pdf",L"",L"" trace:exec:SHELL_ExecuteW Execute L"Thai.pdf" from directory L"" trace:exec:SHELL_ExecuteW returning 5 trace:exec:SHELL_FindExecutable L"Thai.pdf" trace:exec:SHELL_FindExecutable SearchPathW returned non-zero trace:exec:SHELL_FindExecutable xlpFile=L"Z:\home\data1\amita\DecisionSpace2003.19\nexusexec\Thai.pdf",extension=L".pdf" trace:exec:SHELL_FindExecutable File type: L"pdffile" trace:exec:SHELL_ArgifyW 0x33e324, 1024, L"xpdf %1", L"Z:\home\data1\amita\DecisionSpace2003.19\nexusexec\Thai.pdf", (nil), 0x33f184 trace:exec:SHELL_ArgifyW used 66 of 1024 space trace:exec:SHELL_FindExecutable returning L"xpdf" trace:exec:SHELL_execute L"Thai.pdf"/L"open" => L""xpdf""/L"pdffile\shell\open\command" trace:exec:execute_from_key L"pdffile\shell\open\command" L"Thai.pdf" (null) L"" L"xpdf" trace:exec:execute_from_key got cmd: L"xpdf %1" trace:exec:SHELL_ArgifyW 0x33d244, 1024, L"xpdf %1", L"Thai.pdf", (nil), 0x33f184 trace:exec:SHELL_ArgifyW used 66 of 1024 space trace:exec:execute_from_key executing: L"xpdf "Z:\home\data1\amita\DecisionSpace2003.19\nexusexec\Thai.pdf"" trace:exec:SHELL_ExecuteW Execute L"xpdf "Z:\home\data1\amita\DecisionSpace2003.19\nexusexec\Thai.pdf"" from directory L"" trace:exec:SHELL_ExecuteW returning 2 trace:exec:SHELL_execute retval 2 [amita@rm nexusexec]$