www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - Newbie needs help

reply wcount12 aol.com writes:
Hello, I have the digital mars CD.  
I have about 8 programs written 
using DJGPP (before my hd crashed!) and 
now want to run these programs in DM.
The programs were written in plain 'C'.

Im running Windows ME at present, and want
to compile and ammend these programs.  What
target do I need to use, so that I can use
the debugger to step through the code etc.

Also the programs dynamically allocate large 
amounts of memory, should this cause a problem
with some targets?

Kind regards

Paul Warren
Jul 30 2003
parent reply "Walter" <walter digitalmars.com> writes:
Use the x (-mx switch) memory model. You'll also need to download the
dosextender from www.dosextender.com. Unfortunately, there isn't a debugger
for it. I recommend debugging it first as a win32 console program, and then
porting it to dos32.

Or, why not just make them win32 programs?

<wcount12 aol.com> wrote in message news:bg943o$1u9f$1 digitaldaemon.com...
 Hello, I have the digital mars CD.
 I have about 8 programs written
 using DJGPP (before my hd crashed!) and
 now want to run these programs in DM.
 The programs were written in plain 'C'.

 Im running Windows ME at present, and want
 to compile and ammend these programs.  What
 target do I need to use, so that I can use
 the debugger to step through the code etc.

 Also the programs dynamically allocate large
 amounts of memory, should this cause a problem
 with some targets?

 Kind regards

 Paul Warren
Jul 30 2003
parent reply Paul Warren <Paul_member pathlink.com> writes:
To make them Win32 programs, do I just need to build/compile
them with a Win32 as the target?

Also I used commands like    gotoxy(10,20); where do I find 
alternatives for this?

Thanks for your help

Paul Warren



In article <bg9ib6$2dgf$2 digitaldaemon.com>, Walter says...
Use the x (-mx switch) memory model. You'll also need to download the
dosextender from www.dosextender.com. Unfortunately, there isn't a debugger
for it. I recommend debugging it first as a win32 console program, and then
porting it to dos32.

Or, why not just make them win32 programs?

<wcount12 aol.com> wrote in message news:bg943o$1u9f$1 digitaldaemon.com...
 Hello, I have the digital mars CD.
 I have about 8 programs written
 using DJGPP (before my hd crashed!) and
 now want to run these programs in DM.
 The programs were written in plain 'C'.

 Im running Windows ME at present, and want
 to compile and ammend these programs.  What
 target do I need to use, so that I can use
 the debugger to step through the code etc.

 Also the programs dynamically allocate large
 amounts of memory, should this cause a problem
 with some targets?

 Kind regards

 Paul Warren
Aug 01 2003
next sibling parent Arjan Knepper <arjan ask.me> writes:
Yes and you need to convert all "legacy dos api calls" to win32 
equivalent api calls. Or write some adaptor layer for it.

Information is in de MSDN (also online). Search for "Console" 
applications or Charater-mode applications.

Paul Warren wrote:
 To make them Win32 programs, do I just need to build/compile
 them with a Win32 as the target?
 
 Also I used commands like    gotoxy(10,20); where do I find 
 alternatives for this?
 
 Thanks for your help
 
 Paul Warren
 
 
 
 In article <bg9ib6$2dgf$2 digitaldaemon.com>, Walter says...
 
Use the x (-mx switch) memory model. You'll also need to download the
dosextender from www.dosextender.com. Unfortunately, there isn't a debugger
for it. I recommend debugging it first as a win32 console program, and then
porting it to dos32.

Or, why not just make them win32 programs?

<wcount12 aol.com> wrote in message news:bg943o$1u9f$1 digitaldaemon.com...

Hello, I have the digital mars CD.
I have about 8 programs written
using DJGPP (before my hd crashed!) and
now want to run these programs in DM.
The programs were written in plain 'C'.

Im running Windows ME at present, and want
to compile and ammend these programs.  What
target do I need to use, so that I can use
the debugger to step through the code etc.

Also the programs dynamically allocate large
amounts of memory, should this cause a problem
with some targets?

Kind regards

Paul Warren
Aug 01 2003
prev sibling parent "Walter" <walter digitalmars.com> writes:
"Paul Warren" <Paul_member pathlink.com> wrote in message
news:bgdqpk$em1$1 digitaldaemon.com...
 To make them Win32 programs, do I just need to build/compile
 them with a Win32 as the target?
Yes, as long as you convert any DOS specific calls to win32 calls.
 Also I used commands like    gotoxy(10,20); where do I find
 alternatives for this?
www.digitalmars.com/rtl/disp.html
 Thanks for your help

 Paul Warren



 In article <bg9ib6$2dgf$2 digitaldaemon.com>, Walter says...
Use the x (-mx switch) memory model. You'll also need to download the
dosextender from www.dosextender.com. Unfortunately, there isn't a
debugger
for it. I recommend debugging it first as a win32 console program, and
then
porting it to dos32.

Or, why not just make them win32 programs?

<wcount12 aol.com> wrote in message
news:bg943o$1u9f$1 digitaldaemon.com...
 Hello, I have the digital mars CD.
 I have about 8 programs written
 using DJGPP (before my hd crashed!) and
 now want to run these programs in DM.
 The programs were written in plain 'C'.

 Im running Windows ME at present, and want
 to compile and ammend these programs.  What
 target do I need to use, so that I can use
 the debugger to step through the code etc.

 Also the programs dynamically allocate large
 amounts of memory, should this cause a problem
 with some targets?

 Kind regards

 Paul Warren
Aug 01 2003