Migration from Turbo C++ 2.0 to Borland C++ 5.5.1

Where can I find a substitue for:
Biosprint
Bioskey
setvect
getvect
_gtsave
_gtrest

Thanks,
Moises
0
Moises
7/28/2009 5:01:38 AM
embarcadero.cppbuilder.cpp 2803 articles. 0 followers. Follow

6 Replies
1473 Views

Similar Articles

[PageSpeed] 50
Get it on Google Play
Get it on Apple App Store

Moises Romero wrote:

> Where can I find a substitue for:
> Biosprint
> Bioskey
> setvect
> getvect
> _gtsave
> _gtrest
> 
> Thanks,
> Moises

Those are things you won't find and should not use in a Win32
environment. Bios functions and Int21h functions should not and
generally can not be used in Win32.

You should try to find the corresponding API calls and use those.

-- 
Rudy Velthuis (TeamB)        http://www.teamb.com

"If people are good only because they fear punishment, and hope for 
 reward, then we are a sorry lot indeed." -- Albert Einstein
0
Rudy
7/28/2009 11:33:00 AM
Moises Romero <> wrote:

>Where can I find a substitue for:
>Biosprint	fprintf()
>Bioskey	getch() or ReadConsoleInput() depending
>setvect	Interrupts are no longer valid.
>getvect
>_gtsave	Unknown function. Neither 2.0 nor 3.0
>_gtrest	manuals show any gt functions.

...
0
Bob
7/28/2009 4:01:32 PM
> {quote:title=Bob Gonder wrote:}{quote}
> Moises Romero <> wrote:
> 
> >Where can I find a substitue for:
> >Biosprint	fprintf()
> >Bioskey	getch() or ReadConsoleInput() depending
> >setvect	Interrupts are no longer valid.
> >getvect
> >_gtsave	Unknown function. Neither 2.0 nor 3.0
> >_gtrest	manuals show any gt functions.
> 
> ..

Thanks Bob for your help,

I am using getch() instead of bioskey like you suggested, I am including conio.h but when I link I get
"unresolved external _getch" is there a libray or header file I am missing?
Thanks again.

Moises
0
Moises
7/28/2009 10:47:14 PM
Moises Romero <> wrote:

>I am using getch() instead of bioskey like you suggested, I am including conio.h but when I link I get
>"unresolved external _getch" is there a libray or header file I am missing?

You can use grep to find find out (I just did).
In this case, it is in the CW32xxx files.
You should be linking one of them.
My apps link with

c0x32+app,app,app,import32+noeh32+cw32mt+wininet+ws2_32,,app.res

c0x32 == console startup code
import32 == Win32 API
noeh32 == no exception handling stubs
cw32mt == C RTL: multi threaded
wininet == internet functions
ws2_32 == win sockets

...
0
Bob
7/29/2009 12:30:33 AM
> {quote:title=Bob Gonder wrote:}{quote}
> Moises Romero <> wrote:
> 
> >I am using getch() instead of bioskey like you suggested, I am including conio.h but when I link I get
> >"unresolved external _getch" is there a libray or header file I am missing?
> 
> You can use grep to find find out (I just did).
> In this case, it is in the CW32xxx files.
> You should be linking one of them.
> My apps link with
> 
> c0x32+app,app,app,import32+noeh32+cw32mt+wininet+ws2_32,,app.res
> 
> c0x32 == console startup code
> import32 == Win32 API
> noeh32 == no exception handling stubs
> cw32mt == C RTL: multi threaded
> wininet == internet functions
> ws2_32 == win sockets
> 
> ..
Thanks Bob,
I really apprecciate all your help, you have saved me a huge amount of debugging time. 
My C application is not the main application, the main application is comming from a xbase compiler called Harbour which compiles all .prg into .c which I then compile with Bcc32 and then link them toghether with my C app. 
Like you suggested, I am using c0x32.obj as the starting object in the linker with all the libraries you also suggested, but I am getting "unresolved external _main".

The procedure "Main" is inside in one of the other objects I am linking but it doesn't find it obviously.
Any help?

Thanks very much once again,
Moises Romero

Edited by: Moises Romero on Jul 28, 2009 7:42 PM
0
Moises
7/29/2009 2:56:43 AM
Moises Romero <> wrote:

>> c0x32+app,app,app,import32+noeh32+cw32mt+wininet+ws2_32,,app.res
 
>but I am getting "unresolved external _main".
>The procedure "Main" is inside in one of the other objects I am linking but it doesn't find it obviously.

"Main" must be "main".

int main(void)
or
int main(int argc, char* argv[])

It should also be in the file associated with c0x32 above.

This discussion should be moved to the commandline group
as it is completely off-topic here.

...
0
Bob
7/29/2009 2:27:21 PM
Reply:

Similar Artilces:

RE: [perl #15928] perl 5.8.0 does not compile with Borland C/C++ 5.5
----------------------------------------------------------------- > 5.8.0 does not successfully compile a good miniperl when using the > Borland C/C++ 5.5 compiler which comes with Borland C++Builder 5, > when using Sarathy's dmake-4.1 and any combination of configuration > options. Miniperl is compiled, but it merely prints garbage and > exits. Compilation environment is Windows 2000. > > sample compilation output follows. The garbled line is actually > composed of high ascii (or Unicode) characters which this lame > Microsoft text editor does not k...

SM2.5 crash
I got those traps when trying to 'Edit as new'(?) a previous sent mail and wanted to change the language via right click in subject line. Was reproduce able a few times but now it works. Maybe I tried to fast switching spell checker? ------------------------------------------------------------ 12-06-2011 21:37:47 SYS3171 PID 006e TID 0001 Slot 0077 P:\SEAMONKEY2\SEA!LRQ.EXE c0000005 14dd6ac8 P1=00000002 P2=0002fffc P3=XXXXXXXX P4=XXXXXXXX EAX=00030064 EBX=00030180 ECX=00030180 EDX=27a22940 ESI=24c5ee88 EDI=24c5ee88 DS=0053 DSACC=f0f3 DSLIM=ffffffff ES=0053...

Smoke [5.8.2] 21949 FAIL(Mc) cygwin_nt-5.0 1.5.5(0.94/3/2) (i686/1 cpu)
Automated smoke report for 5.8.2 patch 21949 on cygwin_nt-5.0 - 1.5.5(0.94/= 3/2) (i686/1 cpu) (PC09) using version=20 Report by Test::Smoke v1.18.11 (perl 5.8.2) [1 hour 13 minutes] O =3D OK F =3D Failure(s), extended report at the bottom X =3D test(s) failed under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (after miniperl), t =3D make test-p= rep 21949 Configuration (common) none ------------ ------------------------------------------------...

Smoke [5.8.1] 20722 FAIL(c) aix 5.1.0.0 (aix/1 cpu)
Automated smoke report for 5.8.1 patch 20722 on aix - 5.1.0.0 (aix/1 cpu) (hungary) using gcc-3.3.1 version 3.3.1 Report generated by Test::Smoke v1.17 O = OK F = Failure(s), extended report at the bottom ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, t = make test-prep 20722 Configuration (common) -Dcc=gcc-3.3.1 ------------ ---------------------------------------------------------------- O O O O -Duseithreads -Duse64bitint c c c c -Duseithreads -Duselongdouble O O O O -Du...

Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Name: R. Bijster Product: Firefox Summary: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 Comments: I want to report that Windowsbrowser V 6.0.2900_SP2, 12 seconds faster started then FireFoxbrowser. Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2 ...

Smoke [5.12.3] v5.12.3-RC3-1-gc024706 FAIL(c) netbsd 5.0.2 (i386/1 cpu)
Automated smoke report for 5.12.3 patch c0247066c34077145eaa8f33eddcbb64fa3b0f8d v5.12.3-RC3-1-gc024706 qemu386netbsd5-0-2.bandsman.co.uk: AMD 686-class (i386/1 cpu) on netbsd - 5.0.2 using ? unknown cc version smoketime 3 seconds (average 3 seconds) Summary: FAIL(c) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep v5.12.3-RC3-1-gc...

Smoke [5.13.4] v5.13.4-207-g9ea1253 FAIL(c) netbsd 5.0.2 (sparc/1 cpu) #2
Automated smoke report for 5.13.4 patch 9ea12537a494a537e72f6853f48253349ee8d82d v5.13.4-207-g9ea1253 qemusparcnetbsd5-0-2.bandsman.co.uk: SUNW,SPARCstation-5 (MB86907 @ 170 MHz, L64804 FPU) (sparc/1 cpu) on netbsd - 5.0.2 using ? unknown cc version smoketime 28 seconds (average 28 seconds) Summary: FAIL(c) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl...

Smoke [5.13.6] v5.13.6-162-g78b79c7 FAIL(c) netbsd 5.0.2 (i386/1 cpu) #2
Automated smoke report for 5.13.6 patch 78b79c7758384edd69ba966d2f0571855acb1117 v5.13.6-162-g78b79c7 qemu386netbsd5-0-2.bandsman.co.uk: AMD 686-class (i386/1 cpu) on netbsd - 5.0.2 using ? unknown cc version smoketime 45 seconds (average 45 seconds) Summary: FAIL(c) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep v5.13.6-162-g78b...

Smoke [5.9.5] 30516 FAIL(c) linux 2.6.19-1.2288.2.1.fc5 [fedora] (i686/1 cpu)
Automated smoke report for 5.9.5 patch 30516 kirk.peters.homeunix.org: Intel(R) Celeron(R) CPU 2.00GHz (GenuineIntel 199= 4MHz) (i686/1 cpu) on linux - 2.6.19-1.2288.2.1.fc5 [fedora] using ? unknown cc version=20 smoketime 26 seconds (average 1.625 seconds) Summary: FAIL(c) O =3D OK F =3D Failure(s), extended report at the bottom X =3D Failure(s) under TEST but not under harness ? =3D still running or test results not (yet) available Build failures during: - =3D unknown or N/A c =3D Configure, m =3D make, M =3D make (after miniperl), t =3D make test...

Is it just me or has the Fandango site stopped working with FF (1.5.0.7, 1.5.0.9, 2.0) on eComStation 1.2 ?
Hi all, I've possibly messed up my Firefox installations, but other pages still seem to work OK. Has anyone else had problems recently with http://www.fandango.com ? The home page comes up, and then completely hangs my system, and even if I ctrl-alt-delete and kill Firefox with TOP, I just get a black screen and have to re-boot. It used to work fine. If it's just me, does anyone have any advice for what might be happening or how to go about figuring it out ? Thanks in advance, Karen Roberts On Sat, 3 Mar 2007 19:13:13 UTC, Karen Roberts <kvroberts@comcast.net>...

Smoke [5.10.1] perl-5.10.1-1-gca8de22 FAIL(c) Solaris 2.11 (i386/1 cpu)
Automated smoke report for 5.10.1 patch ca8de220718ba91d5a5fdd9779497cd5b0250258 perl-5.10.1-1-gca8de22 nexenta-i386-qemu: i86pc (2310MHz) (i386/1 cpu) on Solaris - 2.11 using ? unknown cc version smoketime 19 seconds (average 19 seconds) Summary: FAIL(c) O = OK F = Failure(s), extended report at the bottom X = Failure(s) under TEST but not under harness ? = still running or test results not (yet) available Build failures during: - = unknown or N/A c = Configure, m = make, M = make (after miniperl), t = make test-prep perl-5.10.1-1-gca8de22 Conf...

[ID 20010209.003] perl-5.6.1-TRIAL2, Win32, Borland C++ 5.2, _S_IFIFO
I have problems compiling perl-5.6.1-TRIAL2: Platform: Win32 Compiler: Borland C++ 5.2 bcc32 -c -w -g0 -tWM -tWD -I..\lib\CORE -I.\include -I. -I.. -I"t:\devel\bc5\include" -DWIN32 -DPERLDLL -DPERL_CORE -O2 -D_RTLDLL -o.\mini\win32sck.obj win32sck.c Borland C++ 5.2 for Win32 Copyright (c) 1993, 1997 Borland International win32sck.c: Error win32sck.c 475: Undefined symbol '_S_IFIFO' in function my_fstat *** 1 errors in Compile *** dmake.exe: Error code 1, while making '.\mini\win32sck.obj' In Borlands (BCC 5.02) sys/stat.h, _S_IFIFO i...

[ID 20010212.004] perl-5.6.1-TRIAL2, Win32, Borland C++ 5.2, dmake install
Intermediate compiler and linker files are copied during 'dmake install': *.il? *.tds *.map ---------------------------------------------------------------------- Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define useperlio=undef d_sfio=undef uselargefiles=undef usesocks=un...

[ID 20010212.001] perl-5.6.1-TRIAL2, Win32, Borland C++ 5.2, Warnings (dmake)
Normally, Perl compiles without or with little warnings. Congratulation for that! You may be interested in a collection of warnings in this environment: Platform: Win32 Compiler: Borland C++ 5.2 ---------------------------------------------------------------------- Summary of my perl5 (revision 5 version 6 subversion 1) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef use5005threads=undef useithreads=defi...

Web resources about - Migration from Turbo C++ 2.0 to Borland C++ 5.5.1 - embarcadero.cppbuilder.cpp

Migration - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

EU-Turkey summit to center on stemming migration flow
EU-Turkey summit to center on stemming migration flow

Microsoft Office 2016: Tips for a seamless migration
... between older and alternative systems amongst the workforce, reducing the negative externalities caused from large scale system migration. ...

GOP Lawmakers Call For Curbs, Freeze On Muslim Migration To U.S.
... support for reducing or suspending visa issuances from Muslim countries. Weber told the panel that in the last year alone the Senate Immigration ...

THE US EMV MIGRATION REPORT: What new chip cards mean for consumers, issuers, and merchants
... includes cards that store user information on a chip rather than a magnetic stripe — to make card-present payments more secure. The migration, ...

U.S.-Mexican migration study counters 2016 campaign narrative
Finding by Pew Research Center represents turning point in one of the largest mass migrations in U.S.

This mass migration to US is over
Over the past 10 years, migration from has slowed considerably, partly because of America's sluggish economy.

Migration to Windows 10 to be fastest yet, says Gartner
Windows 10 is poised to become the most widely installed version of Windows ever, following on the path of Windows XP and Windows 7 before it, ...

Huawei, Telefonica Partner on Enterprises Cloud Migration
The first countries where the enterprise cloud service will be deployed are Brazil, Mexico and Chile during the first quarter of 2016.

Africa-Europe: The politics of migration
While Western eyes have recently focused on the east and arrivals from Syria and Afghanistan, people from a dozen or so African countries continue ...

Resources last updated: 12/6/2015 11:42:47 PM