www.pudn.com > DiskInfo.tgz > makehtml.cpp
#include "stdafx.h" #include#include #include "makehtml.h" ofstream of; bool CreateHTML(LPCTSTR lpscFileName, LPCTSTR lpscTitle) { of.open(lpscFileName, ios::out); of <<"\n\n" <<"\n" <<"\t "< \n" <<"\n\n" <<"\n\n"; return true; } bool FinishHTML() { of <<"\n\n" <<"\n"; of.close(); return true; } void AddHTMLLine(LPCTSTR lpscLine, int nIndent) { for (int i=0; i "< \n"; } CString CreateHTMLImageString(LPCTSTR lpscData) { CString str(" "; return str; } void InsertHTMLHLine() { of << "\n
\n\n"; } void CreateHTMLTable(LPCTSTR lpscData) { of << "\n"; } void FinishHTMLTable() { of << "
\n"; } void CreateHTMLRow() { of << "\t\n"; } void FinishHTMLRow() { of << "\t \n"; } void InsertHTMLCell(LPCTSTR lpscParam, LPCTSTR lpscData) { of << "\t\t" << lpscData << " \n"; }