Questions tagged [borland-c]

Borland C is a 1990s C computer programming language compiler from Borland.

Borland C is a 1990s C computer programming language compiler from Borland.

20 questions
4
votes
2 answers

Unable to open included files

I am using BorlandC and Windows 7. When I compile the file, I am getting these errors: Error Assign.C : Unable to open include file 'stdio.h' Error Assign.C : Unable to open include file 'conio.h' Error Assign.C : Unable to open include file…
zubair
  • 185
  • 3
  • 15
2
votes
1 answer

Trying to set mouse cursor possition in borland C

I have a program which prints the current mouse cursor position into the console. I want to create bounds in which the mouse can go. ( 10,10) and (20,20) So here is my code so far: #include #include #include #include…
Juanti
  • 75
  • 2
  • 10
2
votes
2 answers

Why is the compiler showing "Call to function with no prototype"?

I am trying to print a string using DOS video memory but when I call function print_Id (); and (*old)(); it shows these warnings and does not run the code but without these functions every thing works fine. Call to function print_id with no…
Bilal Maqsood
  • 1,163
  • 3
  • 15
  • 43
2
votes
1 answer

I keep getting an error in the execution of this function

Here mainopp() is my primary menu function for a program. Everytime I enter some value other than 1/2/3/4 it shows the error dialog, takes a ch input (due to the getch()) but then instead of going back and re-running the same function, it somehow…
NSachdeva
  • 51
  • 5
1
vote
0 answers

How to open .bpr files and build a project?

I have a .bpr file in a downloaded project. Is there any application that can build the project based on this file. I think it relates to old borland C age. The previous solution is referring to a dead link.
mercury
  • 189
  • 1
  • 15
1
vote
3 answers

Having trouble with C program output

As far as I know regardless of any other issues the program below should print out the title and menu options, and then prompt for user input. However, it does absolutely nothing and when I stop the execution it prints out the menu etc and then, as…
Amanda6276
  • 33
  • 9
1
vote
2 answers

C Borland Compiler Error

Back to basics with Borland C Compiler. I keep getting the following message and it is driving me crazy as I cannot find where the semi colon should go or why it is expected >bcc32 -v- -w -O1 oddEven.c Borland C++ 5.5.1 for Win32 Copyright (c) 1993,…
user4922773
1
vote
1 answer

borland c unable to include header file

I have a very old C project that must be opened using borlandc. my machine runs win 8 so I have installed dosbox to run borlandc the problem is that when i build the project, there exist too many errors, all are in the form: "unable to include file…
Rehab11
  • 483
  • 2
  • 7
  • 16
0
votes
0 answers

Borland C++ 4.52 Building issues. Cannot convert 'void (interrupt *)(***)' to 'void(*)()

I don't have a lot of experience troubleshooting C code, let alone on an ancient compiler. I didn't write this code and I'm attempting to reverse engineer it so that I can make small tweaks to its functionality. I appreciate the help! When I build I…
Syrinx
  • 9
  • 4
0
votes
1 answer

C program to send 3 lines of text (to a printer)

I need to code a program that takes input from a given register (sending bytes) to a printer and the first sentence has to be the student name in uppercase which I tried with toupper() by converting the register to a given variable (char ch;),…
sens31
  • 27
  • 5
0
votes
0 answers

Do the format strings for printf et al behave differently on Borland C and in GCC?

I am working on porting an old codebase from Borland C to C99. I have come across the following function, which looks like it should copy zero bytes into a buffer. sprintf(tx_tcp_buf,"%0s%0s%0s%0s%0s%0s",strHeader, ccSTX, drValidity, ccUS,…
Lorraine
  • 1,189
  • 14
  • 30
0
votes
2 answers

The variabel in my program is not giving the value user already gave

I am right now learning about making a program using Borland, so this is my first time on use it. I got confused by the result, cause the result is not what I expected. Below is my code: #include #include #include void…
aldo ls
  • 55
  • 10
0
votes
0 answers

Using memcmp with DOS far pointers

I have an old program I wrote in 1995. It is written with Borland C and DOS 6.22. It uses a far model with data in different segments. The program uses EMS memory and that is why the pointers need to be far. I need to use memcmp( a, b, c) but I get…
Aabbee
  • 91
  • 6
0
votes
1 answer

Borland c++ console functions

I'm studing now and I got this homework / tasks to do: 1) If you press the CTRL + L key, all numeric symbols should change the color. 2) If you press the CTRL + S key, you will get the length of the word, left from the cursor. I found this function…
0
votes
0 answers

Using environment variables in a makefile

I'm using XP command line. I have a makefile and a .bat that runs the makefile. I also have an environment variable that I would like to use within the makefile. I have found some documentation but I am having a hard time seeing how to use it in my…
eddyq
  • 879
  • 1
  • 13
  • 25
1
2