6 Star 3 Fork 0

阿甘 / CTestAutoJudge

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
FormHelp.cpp 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
阿甘 提交于 2022-01-12 10:16 . 添加了忽略文件列表
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "FormHelp.h"
#include "myprogfun.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFrmHelp *FrmHelp;
//---------------------------------------------------------------------------
__fastcall TFrmHelp::TFrmHelp(TComponent* Owner,AnsiString filename)
: TForm(Owner)
{
try
{
TStringList*lst=new TStringList();
TFileSpec Fs(Application->ExeName);
AnsiString fullFileName=Fs.FilePath+filename;
ReadSourceFile(lst,fullFileName);
for(int k=0;k<lst->Count;k++){
MemoContent->Lines->Add(lst->Strings[k]);
}
delete lst;
}
catch (Exception & exp)
{
MessageDlg("ļ"+exp.Message,
mtError, TMsgDlgButtons() << mbOK, 0);
}
}
void TFrmHelp::showHelpMsg(TComponent* Owner,AnsiString filename)
{
FrmHelp=new TFrmHelp(Owner,filename);
FrmHelp->ShowModal();
delete FrmHelp;
}
//---------------------------------------------------------------------------
C++
1
https://gitee.com/gancaijun/CTestAutoJudge.git
git@gitee.com:gancaijun/CTestAutoJudge.git
gancaijun
CTestAutoJudge
CTestAutoJudge
develop

搜索帮助