Results 1 to 10 of 12

Thread: noob question about lazarus

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Erm - sorry to say this will but you blundered a little. In his original code he does have a readln statement at the end... And yes, I missed it the first time - who doesn't? otherwise everything else is right on the money. As always.

    On my lazarus I would do
    Project -> New Project -> New Custom Program.
    Its the one that is NOT maintained by lazarus as I find it counter - productive for it to add code I specifically don't want there... But some people find it useful, like half of the community whom use lazarus and tell me its leagues ahead of my plain text IDEs like Geany and programmers notepad. Oh well - I gave it a few goes - it bugged my and I returned to my IDEs. Although the debugger is wonderful - don't let anyone tell you different - I find I prefer ultimate control over my code. Just like sudo mode - it just does it. No questions asked.
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Quote Originally Posted by code_glitch View Post
    Erm - sorry to say this will but you blundered a little. In his original code he does have a readln statement at the end... And yes, I missed it the first time - who doesn't? otherwise everything else is right on the money. As always.
    Ah right! Ok, it would pause until you hit the return key, but then it would disappear. Perhaps Vista and Windows 7 treat command prompts differently than Windows XP and previous?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Nope, it would disappear. But on ubuntu if you just launch the program without $APPTYPE CONSOLE directive it never shows up in the first place - but it does create a thread that uses cpu and ram... And when you close it - the terminal window also goes. I found, in linux, either use the IDE to launch it or Ctrl + Alt + T and cd to the location the app is and do ./ProgramFile to run it in a terminal window that stays where it is...
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  4. #4
    I think you only need {$APPTYPE CONSOLE} in Delphi mode
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  5. #5
    hi again guys.

    Thanks for all the help everyone. I'd been trying to use lazarus and spent a lot of time getting confused with it and I think I aught to say that I decided I'd stay with C but this evening I've changed my mind again. It's a big decision for me as it took me ages to learn C.

    Anyway, my next plan is try and get to grips with Lazarus as it's very exciting to be learning something new so I intend to be a participating member of this community.

    Thanks again for the warm welcome.

    Speak again soon.


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
  •