wxWidgets 几个实用的系统函数

void shelltest()
 { 3     wxExecute(wxT("notepad.exe newfile.txt"));
 }
 
  void sysutils()
 {
     wxString output(wxT("Home dir:"));
     output<<wxGetHomeDir();
     output<<wxT("\nOs Description:")<<wxGetOsDescription();
     output<<wxT("\nUse Name:")<<wxGetUserName();
     output<<wxT("\nUser Id:")<<wxGetUserId();
     output<<wxT("\nEmail Address:")<<wxGetEmailAddress();
     output<<wxT("\nFull Host Name:")<<wxGetFullHostName();
     output<<wxString::Format(wxT("\nFree Memory:%.2fG"),(double)wxGetFreeMemory().ToLong()/1024/1024/1024);
     output<<wxString::Format(wxT("\n64bit?%s"),wxIsPlatform64Bit()?wxT("Yes"):wxT("No"));
     output<<wxString::Format(wxT("\nLittle Endian?%s"),wxIsPlatformLittleEndian()?wxT("Yes"):wxT("No"));
     cout<<output<<endl;
 }

你可能感兴趣的:(wxWidgets 几个实用的系统函数)