Author Topic: Installing win16 applications  (Read 13976 times)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: Installing win16 applications
« Reply #15 on: October 21, 2020, 06:15:40 pm »
Trying to run it here also gives the 23 error. Attempting to run it with Odin gives, 'Failure to load "H:\tmp\k.exe" due to bad or missing MSVCRT.DLL'
Is it a Win32s binary? Or just missing the dll?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: Installing win16 applications
« Reply #16 on: October 21, 2020, 06:29:21 pm »
With the 32 bit msvcrt.dll, Odin runs it in console mode. Not sure what it is supposed to do. Odin is sorta like WINE.
Code: [Select]
H:\tmp>pec k.exe
K 2.95 2004-02-11 Copyright (C) 1993-2004 Kx Systems
Evaluation. Not for commercial use.
\ for help. \\ to exit.

  \
\0       data
\+       verbs
\'       adverbs
\_       system verbs and nouns
\.       assign, define, control and debug
\:       i/o, dynamic load and client/server
\`       os commands, dialog boxes
\a       attributes, dependencies and triggers
\g       gui attributes
\l f     load script f.k
\s f     step script f.k
\w       workspace used, allocated, mapped
\c [0|1] console [off|on]
\e [0|1] error flag [off|on]
\b [t|s] break flag [trace|stop|none]
\d [d|^] k directory [go to]
\v [d|^] variables [directory]
\i [v]   invalid [antecedents/dependents]
\p [n]   print precision [digits]
\t [x]   time [x] milliseconds
\r [s]   random seed
\cd [d]  O/S directory [go to]
\[other] O/S execute
\\       exit    \(escape)    ctrl-c(stop)

I doubt that it'll run under WinOS2 though you could try installing WIN32s 1.25 and test. I think Lewis recently did a writeup on using Win32s, should be on the Arca Noae web site. I got to go to work otherwise I'd find it.

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #17 on: October 21, 2020, 07:41:12 pm »
I'm about to install win32s, I couldn't find how to start win-os2 in "enhanced" mode, would you let me know how?
I assumed it started in enhanced by default, I installed win32s (I hope I did this right) it installed freecell as well.
Now starting k.exe I get:

Win32s - Error
Windows is running in standard mode.
Win32s can run only in 386 enhanced mode.

When I am in the Program Manager I clicked on Help and it says:
386 Enhanced Mode
Memory: 64,882 KB Free
System Resources: 78% Free
« Last Edit: October 21, 2020, 07:55:51 pm by jerome ibanes »

Tom

  • Full Member
  • ***
  • Posts: 194
  • Karma: +5/-0
    • View Profile
Re: Installing win16 applications
« Reply #18 on: October 21, 2020, 07:59:19 pm »
I'm about to install win32s, I couldn't find how to start win-os2 in "enhanced" mode, would you let me know how?

Use the Properties notebook for your Win-OS/2 session.
On its Session page you press the button Win-OS/2 properties.
That opens a window "Win-OS/2 Settings - Properties", where you select the radio button WIN-OS/2 settings and press OK.
Then on the left you select the setting WIN_RUN_MODE and on the right you choose the value "3.1 Enhanced Compatibility" and finally press Save.

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #19 on: October 21, 2020, 08:05:26 pm »
Yes, that's what it was by default.


Win32s - Error
Windows is running in standard mode.
Win32s can run only in 386 enhanced mode.

I've installed the win32s package from https://hobbes.nmsu.edu/?dir=%2F&stype=all&sort=type_name&search=win32s (precisely the last one on the table)

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #20 on: October 21, 2020, 08:12:11 pm »
and with win-os2 in full screen in the background, I start a 4OS2 window, and type "start k", it then says:
Win32s - Error
C:\WIN32APP\K\K.EXE: Invalid format

Hope this helps

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #21 on: October 21, 2020, 08:28:05 pm »
maybe I got the wrong msvcrt.dll? do you have a link to one that's known to work? (or please attach it?)

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #22 on: October 21, 2020, 09:06:03 pm »
I found what I hope is a working msvcrt.dll there:
http://ftp.math.utah.edu/pub/tex/historic/systems/texlive/1998/TeXLive3/bin/win32/

still getting the same error:

"Win32s - Error
Windows is running in standard mode.
Win32s can run only in 386 enhanced mode"

I've checked the settings and os2-win is configured to run in enhanced mode.

If I do the same from the file manager, I get K.EXE invalid format.

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #23 on: October 21, 2020, 09:42:47 pm »
I mean since it works with pec should I bother with win32s? What's a more reasonable approach here? is odin fairly stable and complete? (wine is... kinda, but not always).
What's your take on that?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: Installing win16 applications
« Reply #24 on: October 22, 2020, 12:12:52 am »
Hi, it's a WIN32 console application and further thought says it won't run run under WIN32s.
Install Odin, "yum install odin" or use ANPM, put the Msvcrt.dll in the same directory as k.exe and k20.dll and in your 4os2 window, run pec k.exe and it should work. Odin is no where as capable as WINE but should run many older Win32 programs. Pec is for console, pe is for windowed.

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #25 on: October 22, 2020, 12:26:15 am »
Many thanks!

j

  • Newbie
  • *
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Installing win16 applications
« Reply #26 on: October 22, 2020, 12:48:50 am »
Dave, do you mean "yum install odin-exe-tools" ?

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4787
  • Karma: +99/-1
    • View Profile
Re: Installing win16 applications
« Reply #27 on: October 22, 2020, 01:30:10 am »
Dave, do you mean "yum install odin-exe-tools" ?

Yes, shouldn't have gone by memory :)

Roderick Klein

  • Hero Member
  • *****
  • Posts: 655
  • Karma: +14/-0
    • View Profile
Re: Installing win16 applications
« Reply #28 on: October 23, 2020, 12:19:41 am »
Thanks again, this is great.

Finally, and most importantly, I still get this "Unexpected DOS error: 23" when running this:

http://www.nsl.com/k/k2/k295/

I would greatly appreciate if someone would help me run it.

This is a 32 bti Windows applications.  It might load with win32s but it does not work here with win32s.

Roderick