Open File with default program
-
I've been search around web, and I can't find how can I code a dialog to open a file with his respective application. For example, Click on button an open a pdf on adobe reader.
ShellExecute
. Steve -
I've been search around web, and I can't find how can I code a dialog to open a file with his respective application. For example, Click on button an open a pdf on adobe reader.
like this
CString FileName=_T("Ping"); CString strParam=_T("127.0.0.1"); ShellExecute(NULL,_T("open"), FileName,strParam,NULL,SW_SHOW);
-
like this
CString FileName=_T("Ping"); CString strParam=_T("127.0.0.1"); ShellExecute(NULL,_T("open"), FileName,strParam,NULL,SW_SHOW);
-
And If I want to open a pdf on folder? I want to attach to my program a Help manual on pdf.
-
Just use ShellExecute like this: ShellExecute(NULL, _T("open"), "C:\\MyFolder\\MyPdf.pdf", "", "", SW_SHOW); RicoH Don't think you are, know you are... custom hardware & software - olloc.be -- modified at 10:48 Friday 12th May, 2006