#include bool S19Generator::generateCode(PureViewOfFile &rawCode,const String &strPathOutput) { File outFile; DWORD genBytes=0; String endLine; endLine="S9030000FC"; rawCode.rewind(); if(!outFile.open(strPathOutput,"wb"))return false; generateLines(rawCode.tell(),rawCode.size(),rawCode,outFile); outFile.writeLine(endLine); ::OutputDebugString(endLine+String("\r\n")); return false; } void S19Generator::generateLines(DWORD origin,DWORD codeSize,PureViewOfFile &rawCode,File &outFile) { String strByte; BYTE codeByte; int checksum=0; while(codeSize>0) { String strLine; checksum=0; int bytesInLine=codeSize