大家来帮我看看有什么问题!!!!!!!!!!!

Yea Yea 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我想实现的功能是用一个程序给另外一个程序加个尾巴,,这个程序在启动的时候自己读这个新加的尾巴。
这是我的载入程序:
int filehandle;
int filelong;
int b=128127126125;
char *pszBuffer;
//AnsiString a=Edit1->Text;
//b=StrToInt(a);
filehandle=FileOpen("d:\\save\\a.exe",fmOpenReadWrite);
filelong=FileSeek(filehandle,0,2);
pszBuffer = new char[20];
FileWrite(filelong,pszBuffer,b);
FileClose(filehandle);
delete [] pszBuffer ;
这是我的读出程序:
char *p;
int filehandle,a;
filehandle=FileOpen("d:\\save\\a.exe",0);
a=FileSeek(filehandle,16,2);
p=new char[20];
FileRead(filehandle,p,19);
Label1->Caption=p;
Edit1->Text=IntToStr(a);
FileClose(filehandle);
delete [] p;
...全文
评论 8
收藏 已收藏
分享
返回顶部
Yea
C++ Builder 13,871 成员 102,696 内容