void LuaShellExec(char *command) { #ifdef UNDER_CE //_wsystem(_towchar(command)); SHELLEXECUTEINFO info; info.cbSize = sizeof(SHELLEXECUTEINFO); info.fMask = NULL; info.hwnd = NULL; info.lpVerb = NULL; info.lpFile = _totchar(command); info.lpParameters = NULL; info.lpDirectory = NULL; info.nShow = SW_MAXIMIZE; info.hInstApp = NULL; ShellExecuteEx(&info); #else #ifdef WIN32 WinExec(command, SW_SHOWNORMAL); #else int ret = system(command); if ( ret == -1 ) { Error("[LUASHELEXEC] Unable to start child process for command", command, CATCHALL); } #endif #endif }
void WriteOutput(float Number) { char String[35]; _gcvt(Number, 10, String); WriteUnicodeString(_totchar(String)); }
void WriteOutput(unsigned long Number) { char String[35]; _ultoa(Number, String, 10); WriteUnicodeString(_totchar(String)); }
void WriteOutput(int Number) { char String[35]; _itoa(Number, String, 10); WriteUnicodeString(_totchar(String)); }
void WriteOutput(char* String) { WriteUnicodeString(_totchar(String)); }
void WriteOutput(char Char) { WriteUnicodeString(_totchar(&Char)); }