Results 1 to 10 of 31

Thread: Game Developement

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ahh now I see what is confusing you.

    When I write use Application.ExeName I mean that literally.

    You see in modern pascal dialects the Application is actually a global variable for TApplication class which contains several properties and methods. Best example of seeing this in use is looking ath the source of your project file (*.dpr file).

    And one of its properties is ExeName which contains full filename of your application executable.

  2. #2
    With Freepascal you can also use the "old school" way:
    Code:
    path:=ExtractFilePath(ParamStr(0));
    (No need for pChar as you can see.)
    Best regards,
    Cybermonkey

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •