![Quote](images/misc/quote_icon.png)
Originally Posted by
zlatko
It can contain many other declaration and headers so I dont think that you need it..
What about QProcess ?
Including the files that Dark_Tower comented has solved the errors mentioned. zlatko I need ShellExecute because I have to open a doument (PDF) with the default application from the system and everywhere I aked for how to do it, they syggested me to use ShellExecute... Now I've got some other strange errors. My code is the following:
if ((long)ShellExecute
(0,
QString("open").
utf16(), pathDocument.
utf16(),
NULL,
NULL,
SW_SHOWNORMAL) <= 32)
QMessageBox::critical(this,
"Pre-Visualització",
"Error opening file");
if ((long)ShellExecute(0, QString("open").utf16(), pathDocument.utf16(), NULL, NULL,
SW_SHOWNORMAL) <= 32)
QMessageBox::critical(this, "Pre-Visualització", "Error opening file");
To copy to clipboard, switch view to plain text mode
"pathDocument" contains the path to the PDF doc that I want to open. The compiling errors are shown in the new image that I attach
. Could somebody please explain me where's the mistake?
Bookmarks