Thread: Resizing a Borland Builder 4.0 Console

  1. #1
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135

    Resizing a Borland Builder 4.0 Console

    Hi -

    For reasons that I would rather not get into I have to write a project for School in Borland C++ Builder 4.0 which is pretty ancient.. (I usually use MSVC++)...

    The problem is that the project I have chosen requires a console screen larger than the standard windows console. I cannot find any resources that describe resizing of the console window for this version of the compiler (plenty of MSVC specific gear, but nothing that appears to work or be documented in the help files).

    Anyone got any ideas or docs on this?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    What MSVC++ "specific" stuff do you mean. The API routines for modifying a console size are part of Win32, not VC.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    You mean functions like AllocConsole and WriteConsole etc?

    Can't seem to find them in the help.

    I have to admit, I can't use this compiler at all. It doesn't seem to like having files added to the project as it keeps including a line (I am adding a file called CProtoApp.cpp):

    USEUNIT("CProtoApp.cpp");

    But the compiler barfs on the very line it included. Removing the line does not help because the compiler can no longer find the function definitions in this file.

    It doesn't even seem to have a concept of header files!

    I have used MVSC++ for quite a few years and the fact that this is an old compiler does not help.

  4. #4
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> You mean functions like AllocConsole and WriteConsole etc?

    Well, more SetConsoleScreenBufferSize() and SetConsoleWindowInfo(), but essentially yes.

    I've never used the Builder IDE, so don't know. Certainly the Borland 5.5 compiler can use Win32 routines. It sounds like you have a configuration problem. Can you write a "Hello World!" program with the thing? If not, I'd delete it and re-install it.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  5. #5
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    Can you write a "Hello World!" program with the thing?
    Oh yes - can do, I don't think it is an installation problem. What I did discover is that the Win32 functions do appear to be supported (as there is autocompletion on them), but the are not documented in the online help, which is rather annoying. I am going to have to play around this I can see.

    If anyone has any tuts on multiple file console projects for Borland Builder 4.0 that'd be great!

    The documentation doesn't cover it.. grrr..

  6. #6
    Registered User dalek's Avatar
    Join Date
    May 2003
    Posts
    135
    Think I have solved the problem.. I'll have to try it out, but thanks for the help Adrian.
    Last edited by dalek; 07-19-2003 at 07:55 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Full Screen Console
    By St0rmTroop3er in forum C++ Programming
    Replies: 1
    Last Post: 09-26-2005, 09:59 PM
  2. Resizing the Console
    By jrahhali in forum C++ Programming
    Replies: 4
    Last Post: 09-21-2005, 05:52 PM
  3. Console Functions Help
    By Artist_of_dream in forum C++ Programming
    Replies: 9
    Last Post: 12-04-2004, 03:44 AM
  4. Console Resizing
    By filler_bunny in forum Windows Programming
    Replies: 1
    Last Post: 08-31-2003, 04:50 AM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM