[Qt-interest] How to use a button click and open up Windows command prompt
Wilson Pok
wilson2785 at hotmail.com
Mon Sep 14 13:10:30 CEST 2009
#include <windows.h>
#include <tchar.h>
#include <iostream>
using namespace std;
void button_click()
{
HINSTANCE hInst = ShellExecute(0,
"open", // Operation to perform
"cmd.exe", // Application name
"-d tes123", // Additional parameters
0, // Default directory
SW_SHOW);
return 0;
}
This code can work in MS Visual Studio. Now that I am using QT is there anyway I can do the same? open a windows command prompt window with some parameters
I created a QT GUI project and put the same code in for button click action. It wont work anymore.
_________________________________________________________________
What can you do with the new Windows Live? Find out
http://www.microsoft.com/windows/windowslive/default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090914/6659db09/attachment.html
More information about the Qt-interest-old
mailing list