Announcement

Collapse
No announcement yet.

Built form without see it on the screen

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Michael Mattias
    replied
    You may be right but since we are talking about 3 std handles applied to the app i assumed no problem.
    Not really. In PB/CC, uses of STDIN, STDOUT or STDERR refer to the handle AT THE TIME THE PROGRAM STARTED, NOT WHAT IT CURRENTLY IS. That is, any in-process redirection is igored. Except for STDERR, which is always the console and cannot be re-directed intrinsically... which is why this demo exists:

    Redirect 'stderr' to a file with PB/CC November 2008

    MCM

    Leave a comment:


  • Giuseppe Belziti
    replied
    Originally posted by Edwin Knoppert View Post
    You may be right but since we are talking about 3 std handles applied to the app i assumed no problem.
    Anyway, "not run" does not help much..

    sorry, I meant nothing happens, I applied the suggestion but the window is hidden and not displayed.

    Leave a comment:


  • Edwin Knoppert
    replied
    You may be right but since we are talking about 3 std handles applied to the app i assumed no problem.
    Anyway, "not run" does not help much..

    Leave a comment:


  • Michael Mattias
    replied
    > Maybe you can use console off as suggested and then on demand use
    > AllocConsole() and FreeConsole() API ??

    Thanks, but it don't run...
    And I would not spend any time trying to make it work, either.

    I seriously doubt the PB/CC compiler was designed to handle any "CONSOLE..." commands for consoles it does not create itself, which is not unreasonable at all IMO.

    MCM

    Leave a comment:


  • Giuseppe Belziti
    replied
    Originally posted by Edwin Knoppert View Post
    Maybe you can use console off as suggested and then on demand use AllocConsole() and FreeConsole() API ??
    Thanks, but it don't run...

    Leave a comment:


  • Edwin Knoppert
    replied
    Maybe you can use console off as suggested and then on demand use AllocConsole() and FreeConsole() API ??

    Leave a comment:


  • Giuseppe Belziti
    replied
    Originally posted by Jerry Fielden View Post
    #CONSOLE OFF at the beginning will stop the Console window from opening.
    in this way then I can not open the Console. I would lock the console to create the page, open the console and display the page. In order not to see the console while I'm creating the page.

    Leave a comment:


  • Jerry Fielden
    replied
    #CONSOLE OFF at the beginning will stop the Console window from opening.
    Last edited by Jerry Fielden; 12 Sep 2009, 08:40 AM.

    Leave a comment:


  • Giuseppe Belziti
    replied
    Thanks Bob for the excellent suggestion.
    One other thing: when a program starts, before you run some command it opens a window. We can avoid that opens the window before you run some commands?

    Leave a comment:


  • Bob Zale
    replied
    Sure, that's easy! {smile} Just use PAGE to set the active page to a different page than the visible page. Then, print to the active page (which is invisible), until you're done. Finally, use PCOPY to copy it the visible page, and use PAGE to set the active page back to the visible page.

    Best regards,

    Bob Zale

    Leave a comment:


  • Giuseppe Belziti
    started a topic Built form without see it on the screen

    Built form without see it on the screen

    It happens with slow computers that when we build a form it appears slowly. We can build the form in memory without see it on the screen and then see full display once built?
Working...
X