www.digitalmars.com         C & C++   DMDScript  

c++.dos - General Orientations Needed

reply Paul W <Paul_member pathlink.com> writes:
Walter, this is my situation.

I have some old programs which compiled with the DJGPP DOS compiler.
All worked fine until my HD crashed.  I could not get the
compiler to run when I reinstalled and couldn't get it sorted out
(screen blanked out everytime I ran a program).

DigitalMars runs fine it seems.

My question:

I want to compile/build my old programs and also want to modify
them so debugging is essential. 

I have large amounts of data to be dynamically allocated into memory
10mbytes files, so think I need 32bit compilation?

I have 250MB of Ram to use

I dont need MFC/GUI interfaces, default screen will be fine.

Im running Windows ME.

Under what 'target' do I need to compile my programs.

(I have compiled a few of my old programs, using DOS as
the target platform, seems to run fine.  However if I 
change to Wins32 I get the following error on the build:-
symbol undefined _WinMain 16)

If you can point me in the right direction, I would be
very grateful.

Kind regards

Paul W








Now ive looked through the lessons, (some) and im a bit confused
as to what platform to compile my programs for.  I need to use
the Debugger, as I will want to modify my existing programs. 
Jan 01 2003
next sibling parent "Javier Gutiérrez" <nikkho NOSPAM hotmail.com> writes:
    I cannot understand your problem with DJGPP, I have it, and works fine.

    I recomend you targeting a Win32 console application, since if you need
to manage great memory quantities they would run faster than in a DOS32
enviroment.

    Anyway, you should remember that DJGPP and DMC are not 100% compatible,
so try some compatibility tests before doing the migration.



"Paul W" <Paul_member pathlink.com> escribió en el mensaje
news:av01mu$2s20$1 digitaldaemon.com...
 Walter, this is my situation.

 I have some old programs which compiled with the DJGPP DOS compiler.
 All worked fine until my HD crashed.  I could not get the
 compiler to run when I reinstalled and couldn't get it sorted out
 (screen blanked out everytime I ran a program).

 DigitalMars runs fine it seems.

 My question:

 I want to compile/build my old programs and also want to modify
 them so debugging is essential.

 I have large amounts of data to be dynamically allocated into memory
 10mbytes files, so think I need 32bit compilation?

 I have 250MB of Ram to use

 I dont need MFC/GUI interfaces, default screen will be fine.

 Im running Windows ME.

 Under what 'target' do I need to compile my programs.

 (I have compiled a few of my old programs, using DOS as
 the target platform, seems to run fine.  However if I
 change to Wins32 I get the following error on the build:-
 symbol undefined _WinMain 16)

 If you can point me in the right direction, I would be
 very grateful.

 Kind regards

 Paul W








 Now ive looked through the lessons, (some) and im a bit confused
 as to what platform to compile my programs for.  I need to use
 the Debugger, as I will want to modify my existing programs.
Jan 03 2003
prev sibling parent "Walter" <walter digitalmars.com> writes:
Sounds like you want to create a win32 console program, which is the default
memory model.


"Paul W" <Paul_member pathlink.com> wrote in message
news:av01mu$2s20$1 digitaldaemon.com...
 Walter, this is my situation.

 I have some old programs which compiled with the DJGPP DOS compiler.
 All worked fine until my HD crashed.  I could not get the
 compiler to run when I reinstalled and couldn't get it sorted out
 (screen blanked out everytime I ran a program).

 DigitalMars runs fine it seems.

 My question:

 I want to compile/build my old programs and also want to modify
 them so debugging is essential.

 I have large amounts of data to be dynamically allocated into memory
 10mbytes files, so think I need 32bit compilation?

 I have 250MB of Ram to use

 I dont need MFC/GUI interfaces, default screen will be fine.

 Im running Windows ME.

 Under what 'target' do I need to compile my programs.

 (I have compiled a few of my old programs, using DOS as
 the target platform, seems to run fine.  However if I
 change to Wins32 I get the following error on the build:-
 symbol undefined _WinMain 16)

 If you can point me in the right direction, I would be
 very grateful.

 Kind regards

 Paul W








 Now ive looked through the lessons, (some) and im a bit confused
 as to what platform to compile my programs for.  I need to use
 the Debugger, as I will want to modify my existing programs.
Jan 06 2003