I have several overloaded methods to emit the HTML code:
Code:try { tgtfile = new CFile(strFileName, CFile::modeCreate | CFile::modeWrite ); } catch(CFileException) { MessageBox("HTML file could not be opened","SDX",MB_ICONERROR); } ... void CHotViewView::Emit(char c) { tgtfile->Write(&c,1); } void CHotViewView::Emit(CString strString) { tgtfile->Write(strString,strString.GetLength()); } etc.




Reply With Quote