Develop and Download Open Source Software

Browse CVS Repository

Diff of /malonnote/mnNotePanelController.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9 by maloninc, Fri Jan 20 12:49:54 2006 UTC revision 1.10 by maloninc, Tue Jan 24 09:31:13 2006 UTC
# Line 346  void mnNotePanelController::openDoc(wxSt Line 346  void mnNotePanelController::openDoc(wxSt
346          wxString tempFile = wxFileName::CreateTempFileName(wxT("malonnote-temp"));          wxString tempFile = wxFileName::CreateTempFileName(wxT("malonnote-temp"));
347          FILE* fp;          FILE* fp;
348    
349  wxLogMessage(wxT("temp:[%s]"), tempFile.c_str());          tempFile = tempFile + wxT(".vbs");
350  return;          fp = fopen((const char*)tempFile.mb_str(), "w");
351          fp = fopen(tempFile.mb_str(), "w");          if(fp == NULL) {
352                    wxLogMessage(wxT("Cant't create temp file"));
353                    return;
354            }
355          fprintf(fp, "Set obj = CreateObject(\"Shell.Application\")\n");          fprintf(fp, "Set obj = CreateObject(\"Shell.Application\")\n");
356          fprintf(fp, "obj.Open \"%s\"", doc.mb_str());          fprintf(fp, "obj.Open \"%s\"", (const char*)doc.mb_str());
357          fclose(fp);          fclose(fp);
358          ///cmd.sprintf(wxT("cscript \"%s\""), tempFile.c_str());          cmd.sprintf(wxT("cscript \"%s\""), tempFile.c_str());
359  #endif  #endif
360    
361  #ifdef __WXMAC__  #ifdef __WXMAC__

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26