Wladimir
Yup, checkout x2ftp.oulu.fi:/pub/msdos/programming/misc/borlan32.zip.
HTH,
JJ
----------------------------------------------------------
Jan Just (JJ) Keijser
SMTP: j...@lbvrtda.logica.com
X400: C=3DGB A=3DATTMAIL P=3DLogica O=3DLBV OU1=3DLBVRTDA S=3DJJK
I prefer clear blue skies over a bunch of clouds any day
My views are my own...
flames > /dev/null 2>&1
----------------------------------------------------------
>Is there any patch available that makes it possible to write 32-bit
>programs for DOS in BC++ 4.0?
>Wladimir
I dont know about a patch, but I have BC++ 4.51 and use bcc32 set to generate
assembly ouput, then I use a program I wrote to add segment names to the asm
ouput where applicable, then I compile this with TASM and link with a dos
extender based on Tran's pmode. 32bit C++ for DOS.
>I dont know about a patch, but I have BC++ 4.51 and use bcc32 set to generate
>assembly ouput, then I use a program I wrote to add segment names to the asm
>ouput where applicable, then I compile this with TASM and link with a dos
>extender based on Tran's pmode. 32bit C++ for DOS.
This approach is exactly what I do, and apart from the segment name
manipulation trick, it works with no problems at all.
Though I do remember wasting a couple of days last year when trying to
link a BCC32 produced OBJ with a MASM5 produced OBJ to make a windows
VxD. The top 16 bits of the 32 bit relocation records were always
0000, which was why I had to use the intermediate .ASM file. After
initially denying any problem existed, the Borland Gold support line
'confessed' they were looking at making their OBJ output more
compatable with Microsofts.
Interesting enough, I did download the OBJ spec from Compuserve one
time, and the introduction notes explained that the OBJ format and
record types had almost taken on a life of their own and had been
expanded by differant groups (basic/C/fortran etc) without the
existance of a true standard, which I believe they've now addressed.
Regards,
Tony.
Borland sells their PowerPack for DOS which allows you to write both 16-bit
and 32-bit protected-mode DOS programs. The 32-bit DOS extender is more
like an NT console extender. In effect, it allows you to run NT console
programs under DOS.
Christopher Hill
Aiea, Hawai`i (O`ahu)
>Is there any patch available that makes it possible to write 32-bit
>programs for DOS in BC++ 4.0?
>Wladimir
Check ftp.borland.com/techdocs/language/cpp
there are patches for BC++ 4.0, 4.02, and 4.5
I'm not sure where it's located (I got it off a cd bundle), but
someone named Tran wrote a good extender for BC4. It's called
PMode. Someone else re-wrote that, calling his version pmc.
Those might be what you're looking for.
regards,
jimerthy
> bit...@beaches.net (Franklin Pe=F1a) writes:
> > Vdla...@net.HCC.nl (Wladimir van der Laan) wrote:
> >
> > >Is there any patch available that makes it possible to write 32-bit
> > >programs for DOS in BC++ 4.0?
> =
> I'm not sure where it's located (I got it off a cd bundle), but
> someone named Tran wrote a good extender for BC4. It's called
> PMode. Someone else re-wrote that, calling his version pmc.
> Those might be what you're looking for.
> =
> regards,
> jimerthy
Pmode uses an assembler extender for its code. It somes with a shell for
protected mode Borland C programming. PMC (or was it PMW?) is an
extender =
designed as a drop-in replacement for the Watcom C++ extender (about
1/10 =
the size, faster, smaller, better (but without some obscure functions).
Borland sell Powerpack, a bolt-on for their compiler to use DPMI for
32bit programs. Perversely, I modified Pmode to use Powerpack as the
DPMI extender for a VR project I was doing, which needed the Borland
libraries and pmode API! I can maybe dig a copy out, but a more recent
version of Tran's code is bound to be better than my hacking...
Tran is/was a demo coder, so look for his extenders on hornet or
cdrom.com
Iain
-- =
Iain W. Barker, Maidenhead, UK. .-. .-..-..-..-..-..-..-.
Work: iba...@nortel.ca Tel: 01628 794051 | |__ | || .` || || | > <
Home: ia...@yoshac.demon.co.uk 01628 826518 `----'`-'`-'`-'`----''-'`-`
Mobile: 0468 434792 Fax: 01628 794569 Freedom for life
>Is there any patch available that makes it possible to write 32-bit
>programs for DOS in BC++ 4.0?
They sell PowerPack for DOS...but dont bother...the manuals suck and half
the time it just doesnt work, for eg: GlobalDOSAlloc. Borland are no help,
and just think your an idiot if you ask them something (as well as being
rude).
I just changed to djgpp (like 2 days ago! :) and I had stuff running in
3 hours that I couldnt get to work in 3 weeks with Borland.
Here's my advice: Ditch Borland, and get DJGPP...its cheaper and better!
Leathal.
: >I dont know about a patch, but I have BC++ 4.51 and use bcc32 set to generate
: >assembly ouput, then I use a program I wrote to add segment names to the asm
: >ouput where applicable, then I compile this with TASM and link with a dos
: >extender based on Tran's pmode. 32bit C++ for DOS.
: This approach is exactly what I do, and apart from the segment name
: manipulation trick, it works with no problems at all.
Hmm.. I do something similar, but I use dos32, another extender.. It comes
with a new c0.obj (and asm) which lets you compile (using bcc32) and link it
with dlink (the linker that comes with dos32) without problems.. No need for
fiddeling in the asm output.. ;) [dos32 can be found on x2ftp]
--
||===========//=========Lars`White Spirit'Trřen=========\\===========||
||/////////// Who's General Failure? \\\\\\\\\\\||
||///////// Sieg File! Sieg File! Sieg File! Sieg File! \\\\\\\\\||
||=====//lar...@stud.idb.hist.no|=|lar...@colargol.idb.hist.no\\=====||
>I just changed to djgpp (like 2 days ago! :) and I had stuff running in
>3 hours that I couldnt get to work in 3 weeks with Borland.
Where can I get that?
Wladimir
x2ftp.oulu.fi/pub/msdos/programming/djgpp
Be sure to browse around! (And have lots of time ready to
spend).
jimerthy
>>I just changed to djgpp (like 2 days ago! :) and I had stuff running in
>>3 hours that I couldnt get to work in 3 weeks with Borland.
>Where can I get that?
ftp to any SimTel mirror (oak.oakland.edu or ftp.coast.net), and go to
/SimTel/msdos/djgpp (i believe). There's a number of zips you need,
so make sure to get the .txt file that describes them all. I think
you'll need 6-10MB zipped.
--
pi...@shore.net pi...@gnu.ai.mit.edu pi...@basenji.com
An it harm none, do as thou wilt. Will hack Symix for CPU upgrades.
Lookie here, Agent .99e! :)