Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
July 30, 2003 Newbie needs help | ||||
---|---|---|---|---|
| ||||
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 |
July 30, 2003 Re: Newbie needs help | ||||
---|---|---|---|---|
| ||||
Posted in reply to wcount12 | 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 > > > |
August 01, 2003 Re: Newbie needs help | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter | 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 >> >> >> > > |
August 01, 2003 Re: Newbie needs help | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Warren | 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
>>>
>>>
>>>
>>
>>
>
>
|
August 02, 2003 Re: Newbie needs help | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Warren | "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 > >> > >> > >> > > > > > > |
Copyright © 1999-2021 by the D Language Foundation