怎样取得当前程序文件(EXE文件)所在目录?急!在线等 在线等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Extractfilepath(application.exename) Extractfilepath(application.exename)bcb Extractfilepath(application->exename) Extractfilepath(application.exename) var oldpath:string;begin getdir(0,oldpath); showmessage(oldpath);end; ExtractFilePath(ParamStr(0))或Extractfilepath(application.exename) procedure TMainFrm.GetAppDir(var AppDir: string);var hModule:THandle; buf:array [0..MAX_PATH-1] of char;begin hModule:=GetModuleHandle(nil); GetModuleFileName(hmodule,buf,sizeof(buf)); AppDir:=buf;end; 另一种办法: copy(application.exename,0,length(application.exename)-{在此是你的可执行文件名长度(包括扩展名)); 双表表项判断查询 怎么统计 boolean类型的记录 数据查询--请教高手 关于用ADOCommand调用SQL过程的实现,如何更快呢?在线等,急盼解决!!!!!!!!!!!! cxDBLookupComboBox的奇怪問題,急! 关于数据库备份与恢复 号外!号外!笑话热卖!不买也看看啊! 怎么写格式化程序 问个问题没有分数。有人回答吗? 数据关联问题 农村的孩子,不读书,还有别的出路吗? fastreport的宽度不足,怎么解决?
bcb Extractfilepath(application->exename)
begin
getdir(0,oldpath);
showmessage(oldpath);
end;
或
Extractfilepath(application.exename)
procedure TMainFrm.GetAppDir(var AppDir: string);
var
hModule:THandle;
buf:array [0..MAX_PATH-1] of char;
begin
hModule:=GetModuleHandle(nil);
GetModuleFileName(hmodule,buf,sizeof(buf));
AppDir:=buf;
end;