c++.dos.32-bits - dmc and Pharlap
- Gisle Vanem (18/19) Jul 07 2003 I'm trying to build a Pharlap version of a program, but dmc fails to fin...
- Jan Knepper (8/27) Jul 07 2003 Why do you want to use Pharlap?
- Gisle Vanem (5/9) Jul 07 2003 I assume you mean Flashtek's X32 when you say DOSX.
- Gisle Vanem (19/24) Jul 07 2003 Flashtek is a pile of crap. It fails to run a simple "Hello world" progr...
- Jan Knepper (9/31) Jul 07 2003 That might or might not have anything to do with Flashtek.
- Gisle Vanem (8/13) Jul 07 2003 Why do you answer a question with an unrelated question?
- Jan Knepper (13/25) Jul 07 2003 Oh, is it unrelated?
- Walter (14/17) Jul 07 2003 What I've done for years is make a dual executable. I.e. build the DOSX
- Gisle Vanem (6/11) Jul 07 2003 Is that what you did for dmc.exe? If so this method have problems
- Walter (4/14) Jul 08 2003 .exe
- roland (9/14) Jul 08 2003 Gisle Vanem wrote:
- Walter (6/10) Jul 07 2003 Flashtek works on DOS, and all windows versions except XP, where Microso...
- Nic Tiger (9/15) Jul 08 2003 I consider WinXP a huge pile of crap. If it doesn't support advanced
- roland (4/8) Jul 09 2003 we used DOSX for real time embeded machine tools driving up to 5 axis.
- Gisle Vanem (6/9) Jul 09 2003 Small size is no longer a bonus IMHO. It tells me it was probably
- Walter (8/16) Jul 09 2003 (till
- Nic Tiger (9/25) Jul 09 2003 It works fine on OS/2. I used it for 1/2 year and I liked the way OS/2
- Javier Gutiérrez (6/23) Jul 10 2003 program
- Jan Knepper (7/15) Jul 07 2003 Oh yeah?
- Gisle Vanem (3/7) Jul 07 2003 Pharlap since 1992, djgpp since 1994.
- Walter (12/29) Jul 07 2003 Yes, the problem is the command line length is too long. It has to be 12...
I'm trying to build a Pharlap version of a program, but dmc fails to find my 386link program. Even though it is on my PATH. dmc ident.c ..\lib\wattcpdf.lib x32.lib dosx32.lib MAKE0000. 386link ident -tc -l e:\net\watt\lib\..\lib\wattcpdf d:\prog\dmc\lib\x32 d:\phar 70\lib\dosx32 exc_dmc e:\net\watt\lib\..\lib\wattcpdf d:\prog\dmc\lib\x32 d:\pha r70\lib\dosx32 exc_dmc d:\prog\dmc\lib\sdx Can't run '386link', check PATHpathPATH=d:\prog\tc;c:\bat;e:\djgpp\bin;c:\perl;d:\prog\ow\binw;d:\hc\bin;d:\prog\wd osx\bin;c:\util;c:\util\zip;f:\windows\system32;e:\net\watt\bin;d:\phar70\bin;c:\4dos; e:\net\ppp;c:\util\norton 386link is in d:\phar70\bin. Is it a problem with the long 386link cmd-line? If so, how can I make dmc put that in a response file? dmc 8.34.12, Pharlap 7.0 SDK -- Gisle V. /bin/laden: Not found
Jul 07 2003
Why do you want to use Pharlap? I have used Pharlap, DOS4GW and DOSX as it came with Zortech/Symantec and now Digital Mars C++ and found DOSX to be the clear winner. Unless you have specific reasons for using Pharlap, you might be better of using DOSX. Gisle Vanem wrote:I'm trying to build a Pharlap version of a program, but dmc fails to find my 386link program. Even though it is on my PATH. dmc ident.c ..\lib\wattcpdf.lib x32.lib dosx32.lib MAKE0000. 386link ident -tc -l e:\net\watt\lib\..\lib\wattcpdf d:\prog\dmc\lib\x32 d:\phar 70\lib\dosx32 exc_dmc e:\net\watt\lib\..\lib\wattcpdf d:\prog\dmc\lib\x32 d:\pha r70\lib\dosx32 exc_dmc d:\prog\dmc\lib\sdx Can't run '386link', check PATH-- ManiaC++ Jan KnepperpathPATH=d:\prog\tc;c:\bat;e:\djgpp\bin;c:\perl;d:\prog\ow\binw;d:\hc\bin;d:\prog\wd osx\bin;c:\util;c:\util\zip;f:\windows\system32;e:\net\watt\bin;d:\phar70\bin;c:\4dos; e:\net\ppp;c:\util\norton 386link is in d:\phar70\bin. Is it a problem with the long 386link cmd-line? If so, how can I make dmc put that in a response file? dmc 8.34.12, Pharlap 7.0 SDK -- Gisle V. /bin/laden: Not found
Jul 07 2003
"Jan Knepper" <jan smartsoft.us> wrote:Why do you want to use Pharlap? I have used Pharlap, DOS4GW and DOSX as it came with Zortech/Symantec and now Digital Mars C++ and found DOSX to be the clear winner. Unless you have specific reasons for using Pharlap, you might be better of using DOSX.I assume you mean Flashtek's X32 when you say DOSX. Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO. --gv
Jul 07 2003
"Gisle Vanem" <giva users.sourceforge.net> wrote:I assume you mean Flashtek's X32 when you say DOSX. Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Flashtek is a pile of crap. It fails to run a simple "Hello world" program under Win-XP DOS-box.dmc -v2 -mx hello.c x32.libscppn -v2 -mx hello.c Digital Mars C/C++ Compiler Version 8.34.12n Copyright (C) Digital Mars 2000-2003. All Rights Reserved. Written by Walter Bright www.digitalmars.com 'hello.c' 'D:\PROG\DMC\BIN\..\include\stdio.h' 'D:\PROG\DMC\BIN\..\include\stdlib.h' 'D:\PROG\DMC\BIN\..\include\heapstat.h' 'D:\PROG\DMC\BIN\..\include\dos.h' main C/C++ Compiler complete. Code: 0x0015 (21) Data: 0x0017 (23) Time: 0.32 seconds link d:\prog\dmc\lib\cx+hello,hello,,x32/noi;hello.exe causes a trap in NTVDM:Illegal instruction at CS:0070 IP:03f1 OP: ff ff 00 00 00 --gv
Jul 07 2003
Gisle Vanem wrote:That might or might not have anything to do with Flashtek. Why would you want to run a 32 bits DOS application in a Windows XP command line anyways??? I run DOS 32 bits on DOS and Win 32 bits console from a command line.I assume you mean Flashtek's X32 when you say DOSX. Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Flashtek is a pile of crap. It fails to run a simple "Hello world" program under Win-XP DOS-box.Have you tried the version on www.dosextender.com -- ManiaC++ Jan Knepperdmc -v2 -mx hello.c x32.libscppn -v2 -mx hello.c Digital Mars C/C++ Compiler Version 8.34.12n Copyright (C) Digital Mars 2000-2003. All Rights Reserved. Written by Walter Bright www.digitalmars.com 'hello.c' 'D:\PROG\DMC\BIN\..\include\stdio.h' 'D:\PROG\DMC\BIN\..\include\stdlib.h' 'D:\PROG\DMC\BIN\..\include\heapstat.h' 'D:\PROG\DMC\BIN\..\include\dos.h' main C/C++ Compiler complete. Code: 0x0015 (21) Data: 0x0017 (23) Time: 0.32 seconds link d:\prog\dmc\lib\cx+hello,hello,,x32/noi;hello.exe causes a trap in NTVDM:Illegal instruction at CS:0070 IP:03f1 OP: ff ff 00 00 00
Jul 07 2003
"Jan Knepper" <jan smartsoft.us> wrote:That might or might not have anything to do with Flashtek. Why would you want to run a 32 bits DOS application in a Windows XP command line anyways??? I run DOS 32 bits on DOS and Win 32 bits console from a command line.Why do you answer a question with an unrelated question? I expect the same exe to run under Win-XP and plain DOS. Why keep 2 exes for the same job? If that's impossible with Flashtek, please say so.Have you tried the version on www.dosextender.comDo you mean the "*NEW VERSION* Updated May 15, 2001" ? Yes I do; is there a newer version? --gv
Jul 07 2003
Gisle Vanem wrote:"Jan Knepper" <jan smartsoft.us> wrote:Oh, is it unrelated? I would not perfer to run a Formula-1 race car on a dirt road...That might or might not have anything to do with Flashtek. Why would you want to run a 32 bits DOS application in a Windows XP command line anyways??? I run DOS 32 bits on DOS and Win 32 bits console from a command line.Why do you answer a question with an unrelated question?I expect the same exe to run under Win-XP and plain DOS. Why keep 2 exes for the same job? If that's impossible with Flashtek, please say so.I do not know if that is possible with DOSX or not. I have used it up to W2K's command line where it didn't seem to be a problem. I have not actively used ANY dos extender in development for the last 3/4 years. There is no reason to explain the benefits of running a native executable. What you can do is write a WINSTUB.exe that executes <program>X.exe (DOSX version) when you are NOT running on Win32 and run the native Win32 when you are...Not that I am aware off. -- ManiaC++ Jan KnepperHave you tried the version on www.dosextender.comDo you mean the "*NEW VERSION* Updated May 15, 2001" ? Yes I do; is there a newer version?
Jul 07 2003
"Gisle Vanem" <giva users.sourceforge.net> wrote in message news:becc58$rsq$1 digitaldaemon.com...I expect the same exe to run under Win-XP and plain DOS. Why keep 2 exes for the same job? If that's impossible with Flashtek, please say so.What I've done for years is make a dual executable. I.e. build the DOSX version, and then make that the 'stub executable' for the win32 version. That way, if running under dos, the DOSX version runs. If running under Win32, the Win32 version runs. The two executables are bound into one .exe file. I found running DOS programs to be unsuitable under Win32, because: 1) DOS programs can't handle long file names. 2) DOS date/time has too coarse a granularity. 3) Win32 does not pass the environment correctly when a DOS program spawns a Win32 program and vice versa. 4) Problems with long command lines (as you've pointed out!). With a dual executable, these problems go away.
Jul 07 2003
"Walter" <walter digitalmars.com> wrote:What I've done for years is make a dual executable. I.e. build the DOSX version, and then make that the 'stub executable' for the win32 version. That way, if running under dos, the DOSX version runs. If running under Win32, the Win32 version runs. The two executables are bound into one .exe file.Is that what you did for dmc.exe? If so this method have problems with 4DOS shells. For every spawning of 386link, one instance of dmc.exe is left running in the TaskManager. With COMMAND.COM it's okay. Are you checking the %COMSPEC% value? --gv
Jul 07 2003
"Gisle Vanem" <giva users.sourceforge.net> wrote in message news:bednha$255s$1 digitaldaemon.com..."Walter" <walter digitalmars.com> wrote:.exeWhat I've done for years is make a dual executable. I.e. build the DOSX version, and then make that the 'stub executable' for the win32 version. That way, if running under dos, the DOSX version runs. If running under Win32, the Win32 version runs. The two executables are bound into oneNot anymore. dmc.exe is now a win32 only program.file.Is that what you did for dmc.exe? If so this method have problems with 4DOS shells. For every spawning of 386link, one instance of dmc.exe is left running in the TaskManager. With COMMAND.COM it's okay. Are you checking the %COMSPEC% value?
Jul 08 2003
Gisle Vanem wrote: . .Do you mean the "*NEW VERSION* Updated May 15, 2001" ? Yes I do; is there a newer version? --gvThe version can change. the date don't.. I personaly Re download it once a year. If i could help i might help and after say about the same as Jan. As i can't help i just say about the same as Jan. ciao roland
Jul 08 2003
"Gisle Vanem" <giva users.sourceforge.net> wrote in message news:bec5me$lql$1 digitaldaemon.com...Flashtek works on DOS, and all windows versions except XP, where Microsoft apparently broke the interface to DPMI. Other than not working under XP, Flashtek is (in my experience) far better than other DOS extenders, primarilly because it is an order of magnitude smaller.Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Flashtek is a pile of crap. It fails to run a simple "Hello world" program under Win-XP DOS-box.
Jul 07 2003
"Gisle Vanem" <giva users.sourceforge.net> wrote in message news:bec5me$lql$1 digitaldaemon.com..."Gisle Vanem" <giva users.sourceforge.net> wrote:I consider WinXP a huge pile of crap. If it doesn't support advanced technique (which previous versions of M$ Windows supported, by the way) it doesn't mean that any software that uses this technique is crap. DOSX is fastest and smallest dos extender. I've used it for 4 years (till now) for several huge military class software systems, and I have never had ANY fault related to DOSX. Nic Tiger.I assume you mean Flashtek's X32 when you say DOSX. Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Flashtek is a pile of crap. It fails to run a simple "Hello world" program under Win-XP DOS-box.
Jul 08 2003
Nic Tiger wrote:DOSX is fastest and smallest dos extender. I've used it for 4 years (till now) for several huge military class software systems, and I have never had ANY fault related to DOSX.we used DOSX for real time embeded machine tools driving up to 5 axis. same: NEVER had ANY problem due to DOSX. roland
Jul 09 2003
"Nic Tiger" <tiger7 progtech.ru> wrote:DOSX is fastest and smallest dos extender. I've used it for 4 years (till now) for several huge military class software systems, and I have never had ANY fault related to DOSX.Small size is no longer a bonus IMHO. It tells me it was probably written in asm and with limited features or runtime checks. Does your X32 programs run i anything but plain DOS? OS/2, Win32, dosemu DOS-boxes? --gv
Jul 09 2003
"Gisle Vanem" <giva users.sourceforge.net> wrote in message news:behc9i$2k04$1 digitaldaemon.com..."Nic Tiger" <tiger7 progtech.ru> wrote:(tillDOSX is fastest and smallest dos extender. I've used it for 4 yearshadnow) for several huge military class software systems, and I have neverIt was written in asm, and it is full featured.ANY fault related to DOSX.Small size is no longer a bonus IMHO. It tells me it was probably written in asm and with limited features or runtime checks.Does your X32 programs run i anything but plain DOS?Yes, it runs under all Win32 versions except XP, when Microsoft broke DPMI support.OS/2, Win32, dosemu DOS-boxes?It should. I haven't powered up my OS/2 box in over a decade <g>.
Jul 09 2003
It works fine on OS/2. I used it for 1/2 year and I liked the way OS/2 implemented DPMI. Problems with my new video card drivers prevented me from using OS/2 further. Also I tried DOSX on Linux' dos-emu. It works, but my specific program didn't work because of lack of VESA BIOS support. Nic Tiger. "Walter" <walter digitalmars.com> wrote in message news:behdn0$2ldk$1 digitaldaemon.com..."Gisle Vanem" <giva users.sourceforge.net> wrote in message news:behc9i$2k04$1 digitaldaemon.com...never"Nic Tiger" <tiger7 progtech.ru> wrote:(tillDOSX is fastest and smallest dos extender. I've used it for 4 yearsnow) for several huge military class software systems, and I havehadIt was written in asm, and it is full featured.ANY fault related to DOSX.Small size is no longer a bonus IMHO. It tells me it was probably written in asm and with limited features or runtime checks.Does your X32 programs run i anything but plain DOS?Yes, it runs under all Win32 versions except XP, when Microsoft broke DPMI support.OS/2, Win32, dosemu DOS-boxes?It should. I haven't powered up my OS/2 box in over a decade <g>.
Jul 09 2003
"Nic Tiger" <tiger7 progtech.ru> escribió en el mensaje news:bef0q9$bt3$1 digitaldaemon.com..."Gisle Vanem" <giva users.sourceforge.net> wrote in message news:bec5me$lql$1 digitaldaemon.com...program"Gisle Vanem" <giva users.sourceforge.net> wrote:I assume you mean Flashtek's X32 when you say DOSX. Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Flashtek is a pile of crap. It fails to run a simple "Hello world"hadunder Win-XP DOS-box.I consider WinXP a huge pile of crap. If it doesn't support advanced technique (which previous versions of M$ Windows supported, by the way) it doesn't mean that any software that uses this technique is crap. DOSX is fastest and smallest dos extender. I've used it for 4 years (till now) for several huge military class software systems, and I have neverANY fault related to DOSX. Nic Tiger.PMode/W, ZRDX and DOS32/A are smaller. DOS32/A is probably faster.
Jul 10 2003
Gisle Vanem wrote:"Jan Knepper" <jan smartsoft.us> wrote:Yup.Why do you want to use Pharlap? I have used Pharlap, DOS4GW and DOSX as it came with Zortech/Symantec and now Digital Mars C++ and found DOSX to be the clear winner. Unless you have specific reasons for using Pharlap, you might be better of using DOSX.I assume you mean Flashtek's X32 when you say DOSX.Why Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Oh yeah? How long have you been using either one of them? -- ManiaC++ Jan Knepper
Jul 07 2003
"Jan Knepper" <jan smartsoft.us> wrote:Pharlap since 1992, djgpp since 1994. --gvWhy Pharlap? Because it's far superiour to Flashtek and DOS4GW. Only djgpp/CWSDPMI is better IMHO.Oh yeah? How long have you been using either one of them?
Jul 07 2003
Yes, the problem is the command line length is too long. It has to be 127 characters or less. To use a response file, you'll probably need to do the link separately. -Walter "Gisle Vanem" <giva users.sourceforge.net> wrote in message news:bebv4p$en8$1 digitaldaemon.com...I'm trying to build a Pharlap version of a program, but dmc fails to find my 386link program. Even though it is on my PATH. dmc ident.c ..\lib\wattcpdf.lib x32.lib dosx32.lib MAKE0000. 386link ident -tc -l e:\net\watt\lib\..\lib\wattcpdf d:\prog\dmc\lib\x32d:\phar70\lib\dosx32 exc_dmc e:\net\watt\lib\..\lib\wattcpdf d:\prog\dmc\lib\x32d:\phar70\lib\dosx32 exc_dmc d:\prog\dmc\lib\sdx Can't run '386link', check PATHPATH=d:\prog\tc;c:\bat;e:\djgpp\bin;c:\perl;d:\prog\ow\binw;d:\hc\bin;d:\pro g\wdpathosx\bin;c:\util;c:\util\zip;f:\windows\system32;e:\net\watt\bin;d:\phar70\bi n;c:\4dos;e:\net\ppp;c:\util\norton 386link is in d:\phar70\bin. Is it a problem with the long 386link cmd-line? If so, how can I make dmcputthat in a response file? dmc 8.34.12, Pharlap 7.0 SDK -- Gisle V. /bin/laden: Not found
Jul 07 2003