Thread: Graphics problem with Borland C++

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jun 2006
    Location
    Tennessee
    Posts
    12

    Graphics problem with Borland C++

    I'm using Borland C++ 5 and have downloaded lots of peoples source as examples. Everytime though that something has to be run in DOS the text is messed up. It will have the text and in between it it's like it's pixilated. Is there a way to correct this or is it just because these programs were written to be run in pure dos? I'm running this on windows XP. The graphics are fine it's just the text thats screwed up ! ? ! ? !

  2. #2
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203
    Are you using a laptop/notebook ???
    Tried 'propeties' -> compatibility ???

  3. #3
    Registered User
    Join Date
    Jun 2006
    Location
    Tennessee
    Posts
    12
    I'm running this on a desktop PC. The graphics card is the one that came with the PC (I bought it back in 2000-1). I've tried different compatibility modes but no luck. I'm guessing it's maybe a driver issue with my graphics card? Maybe I ought to just suck it up and focus on 3-d Programming Anyhow I'd like to know if anyone knows of a way to get this to work. It's just inbetween the text that this "pixalation" (I can't thionk of any other way to describe it) happens. Oh, and numbers won't display but this isn't true for all of the programs I've compiled. Anyways this kind of sucks and like to know (if possible) how to fix it.

  4. #4
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I have no idea what's causing the problem...

    I'm using Borland C++ 5... something has to be run in DOS...
    Is Borland 5 a true-DOS compiler? You can use a modern Windows compiler (Dev-C++ or Visual C++, etc.) to make text-based programs. These are called Win32 Console applications.

    If the example code is Standard C++, it should compile and run just fine. That's the whole idea of a standardized language and portable code! But, it's actually unlikely that any randomly downloaded code is standard compliant...

  5. #5
    ... arjunajay's Avatar
    Join Date
    May 2005
    Posts
    203

    Exclamation

    Quote Originally Posted by DougDbug
    I have no idea what's causing the problem...



    Is Borland 5 a true-DOS compiler? You can use a modern Windows compiler (Dev-C++ or Visual C++, etc.) to make text-based programs. These are called Win32 Console applications.

    If the example code is Standard C++, it should compile and run just fine. That's the whole idea of a standardized language and portable code! But, it's actually unlikely that any randomly downloaded code is standard compliant...
    I had I had an older version but it was turbo c++ I think ???
    It worked without problems.

  6. #6
    Registered User
    Join Date
    Jun 2006
    Location
    Tennessee
    Posts
    12
    Is Borland 5 a true-DOS compiler?

    It's not necessarily, but you can tell it to compile the code with the BGI library and create an EXE that will run in a DOS Shell. That's what I've been doing. I wanted to try and get it in a window and not a full screen to geta pic of what's going on. The prgrams run fine as far as graphics are concerned (they use graphics.h so I can't use Dev-C++ or VC) it's just text that gets weird and it's only inbetween the words of the text. Oh, these are not purely text based programs either. (ie. I had code for tetris and the blocks are fine, sound is fine, but the friggin' instructions on the LH side of the screen had that crazy pixel thing inbetween the words)

    arjunajay- are you aware of anyplace to download a Turbo C++ compiler I'd like to see if it would work with that. I've only been able to find Turbo C (no ++ )

    Anyhow, thanks for the replies !
    Last edited by B_Level; 06-10-2006 at 08:31 AM.

  7. #7
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Try running the executable through a DOS emulator. I personally like DOSBox.

    I have no idea why you are getting this problem under the console. Never seen a console behaving like that. But that dos.h include is probably why.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  8. #8
    Registered User
    Join Date
    Jun 2006
    Location
    Tennessee
    Posts
    12
    Thanks Mario F. I hadn't considered that I'm Running this on XP so running in on an emulator is def. worth trying. Hope that works if not . . . well it is Microsoft (like they really care)

  9. #9
    Registered User
    Join Date
    Jun 2006
    Location
    Tennessee
    Posts
    12
    Just tried out the program with dosbox and no problems. Evidently it was just the way XP emulates DOS that was screwing everything up. I'm Def. Happy Now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Beginning Game Programming Type Books
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 09-13-2006, 04:15 PM
  2. Laptop Problem
    By Boomba in forum Tech Board
    Replies: 1
    Last Post: 03-07-2006, 06:24 PM
  3. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  4. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM
  5. Graphics Problem
    By drdroid in forum C++ Programming
    Replies: 5
    Last Post: 02-27-2002, 02:37 PM