BetaArchive Logo
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 24d, 12h, 44m | CPU: 44% | MEM: 5570MB of 12227MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 13 posts ] 
Author Message
 PostPost subject: How to build Microsoft Word 1.1A source without a VM        Posted: Sun Apr 06, 2014 6:32 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Nov 26, 2009 7:14 am

Posts
730

Favourite OS
Windows XP SP2 5.1.2600
I have successfully built Word 1.1A source code without the use of any VMs under a modern PC, HP Pavilion Touchsmart 10.1.
First your PC must be able to boot to MS-DOS or Windows 95/98 DOS. This excludes all UEFI-Only systems such as Microsoft Surface Pro (Not sure about Intel Macs, as one of my Macbook Pro could boot to DOS from CD-ROM but not USB).
Second, your PC must have a whole continuous page (64KB) free in the High Memory Area for use with an EMS emulator. I used JEMMEX as the EMS emulator as it only use few KBs of conventional memory, compatible with modern motherboards and also provides XMS service.
Use UMBCHK in UMBPCI package without any memory manager loaded to see the free parts of High Memory Area.
Image
If there are 4 or more continuous blocks, the EMS emulator will work. Take note of the start and the end address.
Write the config.sys using the addresses.
Image
If Mem.exe reported more than 614K conventional memory and 32M EMS is available, the environment should be OK to build non-Debug builds of Word 1.1A.
Image
Microsoft kindly provided the complete toolchain for building the source code with the archive. Most of those tools lay in /Opus/tools directory of the source archive.
Edit your INI file for makeopus.exe.
Image
The "BUILD=" is the directory for storing intermediate files.
Use "+s" option for a Ship (release) build.
Use "NOAPPLOADER=" to disable the Word's own NE loader, thus the output EXE file could be used in Borland Resource Workshop, or potentially run under NTVDM.
Don't forget to check your TEMP environment variable, it must be pointed to a writable directory for some tools used in build progress.
Assume that your INI file name is fast.ini. under Opus directory, run this command
Code:
tools\makeopus @fast.ini

If an Out of Memory error occurs, try running mo1.bat in the BUILD directory instead of running makeopus.exe again as makeopus.exe itself uses conventional memory.
Image
If you see this, the build is succeeded.
Image
If your DOS is booted from a slow media such a USB Flash drive, you could load XMSDSK or other DOS Ramdisk driver that don't use much conventional memory, copy everything to Ramdisk and build Opus from there to save time. However, makeopus.exe will fail if the BUILD directory is outside of boot drive so use mo1.bat in this situation.


Last edited by yksoft1 on Thu Apr 10, 2014 4:25 pm, edited 1 time in total.

Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Thu Apr 10, 2014 11:53 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Wed Dec 31, 2008 7:29 pm

Posts
1427

Location
SE Asia

Favourite OS
MS-DOS 3.30a & Windows/386!
Wow pretty amazing! does it work? Also can you alter the linker scripts so it'll run on 3.0...? or 3.1?

I haven't had time to try to mess with word... :(

_________________
"Those who don't understand UNIX are condemned to reinvent it, poorly." – Henry Spencer


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Thu Apr 10, 2014 4:16 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Nov 26, 2009 7:14 am

Posts
730

Favourite OS
Windows XP SP2 5.1.2600
louisw3 wrote:
Wow pretty amazing! does it work? Also can you alter the linker scripts so it'll run on 3.0...? or 3.1?

I haven't had time to try to mess with word... :(

I altered some error handling code in initwin.c and init2.c, so the binary even runs under NTVDM in Windows 8.1 without modification. (However it does not run well in Win9x even after using Borland Resource Workshop to convert the binary to Windows 3.0 format, because of some GDI-related bugs.)


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Thu Oct 02, 2014 1:21 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Nov 26, 2009 7:14 am

Posts
730

Favourite OS
Windows XP SP2 5.1.2600
Bullsxxt I've successfully built this in NTVDM using an EMS-enabled PIF file...
Image
However you won't be able to run this on Windows 8+ NTVDM as it disabled support of OS/2 hybrid executables..


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Mon Nov 10, 2014 5:53 am 
Reply with quote
Offline

Joined
Mon Nov 10, 2014 5:51 am

Posts
1
ykssoft1, could you please provide more details on building this? E.g. used compiler, SDK, and other tools besides MS-DOS and Windows.


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Wed Nov 12, 2014 3:23 pm 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Nov 26, 2009 7:14 am

Posts
730

Favourite OS
Windows XP SP2 5.1.2600
kyberias wrote:
ykssoft1, could you please provide more details on building this? E.g. used compiler, SDK, and other tools besides MS-DOS and Windows.

Everything required for compilation is already included in the released source archive.


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Sat Aug 25, 2018 7:02 pm 
Reply with quote
Offline

Joined
Sat Aug 25, 2018 6:57 pm

Posts
3
I finally attacked the problem of severe memory shortage and managed to build Opus from DOS and Windows using protected mode: https://github.com/Ringdingcoder/hx-for-opus


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Tue Aug 28, 2018 3:01 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Thu Nov 26, 2009 7:14 am

Posts
730

Favourite OS
Windows XP SP2 5.1.2600
Ringding wrote:
I finally attacked the problem of severe memory shortage and managed to build Opus from DOS and Windows using protected mode: https://github.com/Ringdingcoder/hx-for-opus

You made CSL to use HX-DOS DPMI? Amazing..


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Tue Aug 28, 2018 8:05 am 
Reply with quote
Offline

Joined
Sat Aug 25, 2018 6:57 pm

Posts
3
Yes. It was supposed to be able to do this anyway, there were just some bugs lurking.


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Tue Aug 28, 2018 3:36 pm 
Reply with quote
FTP Access
Offline

Joined
Mon Nov 03, 2008 6:15 am

Posts
599

Favourite OS
Windows NT 3.51 build 1057
Ringding wrote:
I finally attacked the problem of severe memory shortage and managed to build Opus from DOS and Windows using protected mode: https://github.com/Ringdingcoder/hx-for-opus


you may replace some of instructions since HX extender sources has new home (done by Japheth)
https://github.com/Baron-von-Riedesel/HX


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Tue Aug 28, 2018 6:39 pm 
Reply with quote
Offline

Joined
Sat Aug 25, 2018 6:57 pm

Posts
3
Thanks, I should do that. I was actually looking for a trustworthy git repo, but the only one I stumbled across was neozeed's project at sf.net.


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Wed Aug 29, 2018 2:28 am 
Reply with quote
FTP Access
Offline

Joined
Mon Nov 03, 2008 6:15 am

Posts
599

Favourite OS
Windows NT 3.51 build 1057
Ringding wrote:
Thanks, I should do that. I was actually looking for a trustworthy git repo, but the only one I stumbled across was neozeed's project at sf.net.


and he even showed up in BTTR:
http://www.bttr-software.de/forum/board ... p?id=15450


Top  Profile
 PostPost subject: Re: How to build Microsoft Word 1.1A source without a VM        Posted: Thu Aug 30, 2018 10:57 am 
Reply with quote
FTP Access
User avatar
Offline

Joined
Wed Dec 31, 2008 7:29 pm

Posts
1427

Location
SE Asia

Favourite OS
MS-DOS 3.30a & Windows/386!
Thanks again, I got Word to build & run! no doubt using the OS/2 tools is the more sane approach. I wonder how they would behave on earlier NT as you should be able to seamlessly run MS-DOS/OS2 commands in scripts...

And then Word via WOW

_________________
"Those who don't understand UNIX are condemned to reinvent it, poorly." – Henry Spencer


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 




Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2018

 

Sitemap | XML | RSS