使用wxWidgets進行跨平台程式開發-zetcode_wxWidgets_helper_classes07(改寫)
zetcode_wxWidgets_helper_classes07(console application、wxPuts命令模式文字輸出-有換行、wxShell執行Linux Shell)
#include <wx/string.h>
#include <wx/utils.h>
/*
http://zetcode.com/gui/wxwidgets/helperclasses/
wxWidgets has several handy utility functions for executing a process, getting a home user directory or getting the OS name.
In the following example, we execute the ls command. For this, we have the wxShell() function (Unix only).
*/
int main(int argc, char **argv)
{
wxShell(wxT("ls -l"));
}
沒有留言:
張貼留言