1:获得本程序的进程ID
InBlock.gif         long gpid; 
InBlock.gif        gpid=::wxGetProcessId(); 
InBlock.gif        wxString tempWxString; 
InBlock.gif        tempWxString.sprintf(wxT( "%d"), gpid); 
InBlock.gif        wxMessageBox(tempWxString, _( "Welcome to..."));
 
2:定时器
InBlock.gif        ::wxStartTimer(); 
InBlock.gif         long gt; 
InBlock.gif        gt=::wxGetElapsedTime( true); 
InBlock.gif        wxString tempWxString; 
InBlock.gif        tempWxString.sprintf(wxT( "is %d second"), gt/1000); 
InBlock.gif        wxMessageBox(tempWxString, _( "Welcome to..."));
 
3:一句话COPY文件
InBlock.gif //bool wxCopyFile(const wxString& file1, const wxString& file2, bool overwrite = true) 
InBlock.gif 
InBlock.gif::wxCopyFile( "c:\\README.TXT", "d:\\1.txt", true);
 
4:获得系统文件夹
InBlock.gif        wxString osDirectory; 
InBlock.gif        osDirectory=::wxGetOSDirectory(); 
InBlock.gif        wxMessageBox(osDirectory, _( "Welcome to..."));
 
5:获得系统版本信息
InBlock.gif        wxString OsVersion; 
InBlock.gif        OsVersion=::wxGetOsDescription(); 
InBlock.gif        wxMessageBox(OsVersion, _( "axi Test"));
 
6:窗体坐标
InBlock.gif        wxPoint wp; 
InBlock.gif        wp=frame->GetClientAreaOrigin(); 
InBlock.gif         int x1,y1; 
InBlock.gif        x1=wp.x; 
InBlock.gif        y1=wp.y; 
InBlock.gif        wxString tempWxString; 
InBlock.gif        tempWxString.sprintf(wxT( "x: %d y: %d"), x1,y1); 
InBlock.gif        wxMessageBox(tempWxString, _( "frame xy"));
 
其他的一些文件操作
InBlock.gif::wxRemoveFile 
InBlock.gif bool wxRemoveFile( const wxString& file) 
InBlock.gif 
InBlock.gifRemoves file, returning  true  if successful. 
InBlock.gif 
InBlock.gif 
InBlock.gif 
InBlock.gif
InBlock.gif 
InBlock.gif::wxRenameFile 
InBlock.gif bool wxRenameFile( const wxString& file1,  const wxString& file2,  bool overwrite =  true
InBlock.gif 
InBlock.gifRenames file1 to file2, returning  true  if successful. 
InBlock.gif 
InBlock.gifIf overwrite parameter  is  true ( default), the destination file  is overwritten  if it exists, but  if overwrite  is  false, the functions fails  in  this  case
InBlock.gif 
InBlock.gif::wxRmdir 
InBlock.gif bool wxRmdir( const wxString& dir,  int flags=0) 
InBlock.gif 
InBlock.gifRemoves the directory dir, returning  true  if successful. Does not work under VMS. 
InBlock.gif 
InBlock.gifThe flags parameter  is reserved  for future use. 
InBlock.gif 
InBlock.gifPlease notice that there  is also a wxRmDir() function which simply wraps the standard POSIX rmdir() function and so return an integer error code instead of a boolean value (but otherwise  is currently identical to wxRmdir), don't confuse these two functions.