gfxconversion/mifconv/src/mifconv_iconbinaryconverter.cpp
branchRCL_3
changeset 5 0f973a9226e8
parent 2 53df912d30f4
child 27 19f74a1096d4
equal deleted inserted replaced
4:23f0e6a5b752 5:0f973a9226e8
   236         iTempFilenames.push_back(to);
   236         iTempFilenames.push_back(to);
   237         // It seems that system() function does not work if the command consists of two separate parts 
   237         // It seems that system() function does not work if the command consists of two separate parts 
   238         // enclosed with quotation marks. If the whole string is enclosed with quotation marks then it works...
   238         // enclosed with quotation marks. If the whole string is enclosed with quotation marks then it works...
   239         // For example: command '"\epoc32\tools\bmconv" "somefile"' does not work while command
   239         // For example: command '"\epoc32\tools\bmconv" "somefile"' does not work while command
   240         // '""\epoc32\tools\bmconv" "somefile""' does.
   240         // '""\epoc32\tools\bmconv" "somefile""' does.
       
   241         cout << "Mifconvdebugging - executing" << MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str() << endl;
       
   242 
   241         if( system(MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str()) < 0 )
   243         if( system(MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str()) < 0 )
   242         {
   244         {
       
   245             cout << "Mifconvdebugging - failed to execute" << MifConvString("\""+extConverterCommand+"\""+to+"\"\"").c_str() << endl;
   243             int ernro = errno;  // The error number must check straight away before any next system command
   246             int ernro = errno;  // The error number must check straight away before any next system command
   244             
   247             
   245             MifConvString errStr("Executing SVGTBINENCODE failed");
   248             MifConvString errStr("Executing SVGTBINENCODE failed");
   246             if( ernro )
   249             if( ernro )
   247             {
   250             {