On Thu, Nov 12, 2009 at 12:55 PM, MacArthur, Ian (SELEX GALILEO, UK) <[email protected]> wrote: >> I've written a "user's manual" for my application and >> converted it into a PDF. I'd like to "link" to it from the >> Help menu (Fl_Menu_Bar) on my app. So far, I've done it with >> system("Manual.pdf") which is really awful. It opens a >> console and loads the PDF but it seems to take ages and it >> renders the app unusable until I close the PDF reader. >> >> How would you do this (in WIN32)? > > Probably via CreateProcess(...) although it's usage confuses me, too > many parameters... Or maybe via ShellExecute(...) (ditto on its params > though!) >
The win32 method would indeed be ShellExecute, you'd do it like this: ShellExecute(fl_xid(window),NULL,"c:\\path\\to.pdf", NULL, NULL, SW_SHOWNORMAL); I think this is what fl_open_uri() does on windows anyway (it's what it should do, at least) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

