/[Sims3RigEditor]/trunk/gr2lib_cpp/GrannyAPILogger.cpp
ViewVC logotype

Diff of /trunk/gr2lib_cpp/GrannyAPILogger.cpp

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

revision 12 by william, Sat Jul 31 09:33:11 2010 UTC revision 13 by william, Sat Jul 31 09:39:55 2010 UTC
# Line 21  void GrannyAPILogger::SetLogFileName(con Line 21  void GrannyAPILogger::SetLogFileName(con
21  {  {
22          System::IO::FileInfo^ fs = gcnew System::IO::FileInfo(gcnew System::String(filename));          System::IO::FileInfo^ fs = gcnew System::IO::FileInfo(gcnew System::String(filename));
23          //System::String^ _filename_no_ext = fs->Name->Remove( fs->Name->Length -  fs->Extension->Length);          //System::String^ _filename_no_ext = fs->Name->Remove( fs->Name->Length -  fs->Extension->Length);
24          const char* _const_filename_no_ext = (char*)(void*)Marshal::StringToHGlobalAnsi(fs->Name->ToLower());          const char* _const_filename_no_ext = (char*)(void*)Marshal::StringToHGlobalAnsi(fs->FullName->ToLower());
25          const char* log_suffix = ".log";          const char* log_suffix = ".log";
26          int msg_malloc = (strlen(_const_filename_no_ext) + strlen(log_suffix));          int msg_malloc = (strlen(_const_filename_no_ext) + strlen(log_suffix));
27    

Legend:
Removed from v.12  
changed lines
  Added in v.13

  ViewVC Help
Powered by ViewVC 1.1.22