C#反编译微软MSDN2003的帮助文档,并将反编译结果保存到一个SQLSERVER数据库中__教程 |
|
日期:2007-5-20 0:37:44 人气:169 [大 中 小] |
|
|
|
{ try { if( bolPause ) myThread.Suspend(); bolPause = false; InvokeSetProgress( this.myProgress , myNames.Count , iCount ); if( bolCancel ) break; // 读取临时文件数据 string strTempFileName = (string)myNames[iCount]; System.IO.FileInfo myTempInfo = new System.IO.FileInfo( strTempFileName ); byte[] bytData = new byte[ (int)myTempInfo.Length ]; System.IO.FileStream myFile = new System.IO.FileStream( strTempFileName , System.IO.FileMode.Open ); myFile.Read( bytData , 0 , bytData.Length ); myFile.Close(); InsertNameCmd.Parameters[0].Value = FileCount; InsertNameCmd.Parameters[1].Value = strModleName + strTempFileName.Substring( BasePathLength ); InsertNameCmd.Parameters[2].Value = CurrentDBName ; InsertNameCmd.Parameters[3].Value = bytData.Length ;
InsertCmd.Parameters[0].Value = FileCount ; InsertCmd.Parameters[1].Value = bytData ;
if( bolCancel ) break;
InsertNameCmd.ExecuteNonQuery(); InsertCmd.ExecuteNonQuery();
FileSizeCount += bytData.Length ; TotalFileSize += bytData.Length ; FileCount ++ ;
// 更换数据库 if( FileSizeCount > DBMaxSize ) { DBCount ++ ; CurrentDBName = "MSDN" + DBCount.ToString(); |
|
出处:本站原创 作者:佚名 |
|
|