[Error] Globle.pas(18): Undeclared identifier: 'Application'
[Error] Globle.pas(18): ')' expected but identifier 'ExeName' found
[Fatal Error] MainFrm.pas(79): Could not compile used unit 'Globle.pas'
请问这是什么意思啊,
帮帮忙.

解决方案 »

  1.   

    在uses列表中加入 ‘Forms,’就行了
      

  2.   

    [Error] Globle.pas(18): Undeclared identifier: 'Application'
    要uses forms单元
    [Error] Globle.pas(18): ')' expected but identifier 'ExeName' found
    缺少一个右括号')'
    [Fatal Error] MainFrm.pas(79): Could not compile used unit 'Globle.pas'
    //不能编译'Globle.pas'单元
      

  3.   

    不过, 看你的意思,你是放在一个叫Globle.pas中,想以得程序的文件名称或路径
    如果都是EXE中使用这个单元是没有问题的,但如果是在DLL中也用这个单元中的那可能取到的值就不是你想要的了说说而已。