www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - Compiler works :)

reply "Paolo" <no libero.it> writes:
Hi, I installed the compiler, I wrote a simple hello world program and I
compiled it:

sc hello

It compile and doesn't return me any error.

Then I copied the files of the 32 bit DOS development libraries and the
files of the X32 DOS extender, so I tried to compile the same program:

sc hello -mx X32.lib

It compile, but when I try to run the program, it closes immediamently. Why?
Which errors did I make? Please help me... Thanks

P.S. I have got Windows XP
Mar 12 2002
next sibling parent reply Jan Knepper <jan smartsoft.cc> writes:
Do you want to create a DOSX or Windows NT/XP program?
I am not sure if DOSX is compatible with WXP

Jan



Paolo wrote:

 Hi, I installed the compiler, I wrote a simple hello world program and I
 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and the
 files of the X32 DOS extender, so I tried to compile the same program:

 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes immediamently. Why?
 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP

Mar 12 2002
next sibling parent "Paolo" <no libero.it> writes:
"Jan Knepper" <jan smartsoft.cc> ha scritto nel messaggio
news:3C8E1C0C.C0BD96D6 smartsoft.cc...
 Do you want to create a DOSX or Windows NT/XP program?
 I am not sure if DOSX is compatible with WXP

 Jan



 Paolo wrote:

 Hi, I installed the compiler, I wrote a simple hello world program and I
 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and the
 files of the X32 DOS extender, so I tried to compile the same program:

 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes immediamently.


 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP


And now, How Can I resolve? Please help me... Bye
Mar 12 2002
prev sibling parent reply "Paolo" <no libero.it> writes:
"Jan Knepper" <jan smartsoft.cc> ha scritto nel messaggio
news:3C8E1C0C.C0BD96D6 smartsoft.cc...
 Do you want to create a DOSX or Windows NT/XP program?
 I am not sure if DOSX is compatible with WXP

 Jan



 Paolo wrote:

 Hi, I installed the compiler, I wrote a simple hello world program and I
 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and the
 files of the X32 DOS extender, so I tried to compile the same program:

 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes immediamently.


 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP


I want to create a DOSX application. bye
Mar 12 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
 P.S. I have got Windows XP



Well, <g> start a DOS operating system... Jan
Mar 12 2002
parent reply "Paolo" <no libero.it> writes:
What do you mean? I don't understand...

"Jan Knepper" <jan smartsoft.cc> ha scritto nel messaggio
news:3C8E2195.C0D88AEE smartsoft.cc...
 P.S. I have got Windows XP



Well, <g> start a DOS operating system... Jan

Mar 12 2002
parent Jan Knepper <jan smartsoft.cc> writes:
Well, you're running WXP as operating system, but want to run a
DOSX program.
It would be preferable to run an NT program. You actually could
develop the program as an NT console program and once you're
done recompile it as DOSX program and run it on DOS (W95/98)

Jan



Paolo wrote:

 What do you mean? I don't understand...

 "Jan Knepper" <jan smartsoft.cc> ha scritto nel messaggio
 news:3C8E2195.C0D88AEE smartsoft.cc...
 P.S. I have got Windows XP



Well, <g> start a DOS operating system... Jan


Mar 12 2002
prev sibling next sibling parent reply "Walter" <walter digitalmars.com> writes:
With Windows XP, Microsoft apparently broke 32 bit DOS extenders. X32 works
on Windows 95, 98, ME, NT, and 2000.

There's no need for a dos extender under XP anyway. Just compile:

    sc hello

to create a win32 program, and run it with:

    hello

which should work.

-Walter

"Paolo" <no libero.it> wrote in message
news:a6l15h$kv7$1 digitaldaemon.com...
 Hi, I installed the compiler, I wrote a simple hello world program and I
 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and the
 files of the X32 DOS extender, so I tried to compile the same program:

 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes immediamently.

 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP

Mar 12 2002
parent reply "Paolo" <no libero.it> writes:
Yes, but I want to make a 32 bit DOS program.. I want to program the VGA?
How Can I do this? Bye

"Walter" <walter digitalmars.com> ha scritto nel messaggio
news:a6leof$qtn$1 digitaldaemon.com...
 With Windows XP, Microsoft apparently broke 32 bit DOS extenders. X32

 on Windows 95, 98, ME, NT, and 2000.

 There's no need for a dos extender under XP anyway. Just compile:

     sc hello

 to create a win32 program, and run it with:

     hello

 which should work.

 -Walter

 "Paolo" <no libero.it> wrote in message
 news:a6l15h$kv7$1 digitaldaemon.com...
 Hi, I installed the compiler, I wrote a simple hello world program and I
 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and the
 files of the X32 DOS extender, so I tried to compile the same program:

 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes immediamently.

 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP


Mar 12 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
Run Windows 95, 98, NT, 2000 or plain old DOS...

Jan



Paolo wrote:

 Yes, but I want to make a 32 bit DOS program.. I want to program the VGA?
 How Can I do this? Bye

 "Walter" <walter digitalmars.com> ha scritto nel messaggio
 news:a6leof$qtn$1 digitaldaemon.com...
 With Windows XP, Microsoft apparently broke 32 bit DOS extenders. X32

 on Windows 95, 98, ME, NT, and 2000.

 There's no need for a dos extender under XP anyway. Just compile:

     sc hello

 to create a win32 program, and run it with:

     hello

 which should work.

 -Walter

 "Paolo" <no libero.it> wrote in message
 news:a6l15h$kv7$1 digitaldaemon.com...
 Hi, I installed the compiler, I wrote a simple hello world program and I
 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and the
 files of the X32 DOS extender, so I tried to compile the same program:

 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes immediamently.

 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP



Mar 12 2002
parent reply "Paolo" <no libero.it> writes:
:°°° I think that I will programming only DOS16 programs, with the
limitations of 640kb.. Thanks, bye

"Jan Knepper" <jan smartsoft.cc> ha scritto nel messaggio
news:3C8E4353.B9FAFA79 smartsoft.cc...
 Run Windows 95, 98, NT, 2000 or plain old DOS...

 Jan



 Paolo wrote:

 Yes, but I want to make a 32 bit DOS program.. I want to program the


 How Can I do this? Bye

 "Walter" <walter digitalmars.com> ha scritto nel messaggio
 news:a6leof$qtn$1 digitaldaemon.com...
 With Windows XP, Microsoft apparently broke 32 bit DOS extenders. X32

 on Windows 95, 98, ME, NT, and 2000.

 There's no need for a dos extender under XP anyway. Just compile:

     sc hello

 to create a win32 program, and run it with:

     hello

 which should work.

 -Walter

 "Paolo" <no libero.it> wrote in message
 news:a6l15h$kv7$1 digitaldaemon.com...
 Hi, I installed the compiler, I wrote a simple hello world program




 compiled it:

 sc hello

 It compile and doesn't return me any error.

 Then I copied the files of the 32 bit DOS development libraries and




 files of the X32 DOS extender, so I tried to compile the same




 sc hello -mx X32.lib

 It compile, but when I try to run the program, it closes




 Why?
 Which errors did I make? Please help me... Thanks

 P.S. I have got Windows XP




Mar 12 2002
parent Jan Knepper <jan smartsoft.cc> writes:
Whatever...

Paolo wrote:

 :°°° I think that I will programming only DOS16 programs, with the
 limitations of 640kb.. Thanks, bye

Mar 12 2002
prev sibling parent reply Heinz Saathoff <hsaat bre.ipnet.de> writes:
Paolo schrieb...
 i, I installed the compiler, I wrote a simple hello world program and I
 compiled it:
 
 sc hello
 
 It compile and doesn't return me any error.

You should compile using the extension .c or .cpp. If no extension is entered the compiler will directly call the linker. Try to compile with sc -mx hello.c
 P.S. I have got Windows XP

While I'm not sure if DOSX programs run on XP I would assume they do. What I know is that DOSX programs run on 95/98,ME,NT,2000. Heinz
Mar 13 2002
parent reply Roland <rv ronetech.com> writes:
Heinz Saathoff a écrit :

 While I'm not sure if DOSX programs run on XP I would assume they do.

that is a good question. some says no. anybody to confirm ? roland
Mar 13 2002
parent Tim Julian <tjulian removethis.oldi.com> writes:
The author of the DOSX extender told me in an email that the extender 
does not work with XP. He did say that he plans to update it to include 
XP support.

Tim

In article <3C8F17FF.61095952 ronetech.com>, rv ronetech.com says...
 
 
 Heinz Saathoff a écrit :
 
 While I'm not sure if DOSX programs run on XP I would assume they do.

that is a good question. some says no. anybody to confirm ? roland

Mar 13 2002