title: Saving a DICOM file in another format to a specified location in disk - MFC
body: <p>I am using <strong>CxImgDCM</strong>, a class derived from CxImage to handle DICOM files. I need to save a  DICOM image in another format like <strong>JPEG</strong>, <strong>TIFF</strong> and so on. These functions exist in the CxImgDCM class, but I need to save it in a desired location using the CFileDialog class. I have got the file format and have opened the Save As Dialog. What do I do inside the <strong>IDOK</strong> condition to save my image in a preferred location. The code is as follows :-</p>
  
  <pre><code>if(dlg.m_FileType == 0)
  {   
              // Save as JPEG File
      CString strFilter = "*.jpg";
      CFileDialog FileDlg(FALSE, CString("*.jpg"), NULL, OFN_HIDEREADONLY |  OFN_OVERWRITEPROMPT, CString(strFilter));
  
      if (FileDlg.DoModal() == IDOK)  
      {  
                      // What should I do here? 
                      // There is a Save_DCM_as_JPG("filePath") function. 
                      // But how do I select the location to save it and write the file there?
      }
  }
  </code></pre>
  
  <p>NOTE : The "filePath" argument is the source, not destination.</p>