Browse CVS Repository
Diff of /malonnote/mnNotePanelController.cpp
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 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 |
|
|
| |