在别人的程序里,有如下代码,偶发现ParamCount的值在调试时与运动时的值是不同的;工程文件里
----------------------------------------------
begin
Application.MessageBox(pchar(inttostr(ParamCount)), '');
//调试的时候,看到ParamCount为4, 参数分别为:-t -d -c debug.xml
...
//但直接运动EXE时ParamCount为0
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
----------------------------------------------
请问这是为什么?
调试时看到这些-t -d -c debug.xml又是从哪里得来的?
----------------------------------------------
begin
Application.MessageBox(pchar(inttostr(ParamCount)), '');
//调试的时候,看到ParamCount为4, 参数分别为:-t -d -c debug.xml
...
//但直接运动EXE时ParamCount为0
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
----------------------------------------------
请问这是为什么?
调试时看到这些-t -d -c debug.xml又是从哪里得来的?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货