These examples use the HEAD.EXE program From 
'Programming the OS/2 Presentation Manager' (Microsoft Press)
by Charles Petzold [Chapter 14].


-------------------------------------------------------
Convert Resources and Establish Build Environment.

Objective:
    Compile and Link code with Windows Resources.

One of the frustrating things on a new system is establishing your
build environment and getting used to new tools.  The first step in
porting is to get your old code recompiled on the new system.  In
this case, we also want to convert the PM .rc file to a Windows one.


You will also need to set your lib variable to the location of
os2port.lib (included under quicklib) and the include directory with
your os2 include files (as modified see quicklib\readme)

______________________



1. Convert resource file.
   copy head.rc head.os2
   resconv head.os2 head.rc

   The Resconv.exe used here has been modifed from the one included
in the OS/2 to Windows Migration Kit.  You need the new one in this
library. Make sure the exe you use has a date of 7-13-92 or later.

2. Makefile modifications
   You are encouraged to use the ntwin32.mak file to build your
applications.  In line with this, compile lines were changed.
You also need to convert your object file form MS object file
format to the COFF standard accepted by the linker.  This is
what the $(cvtobj) line is for.

In a similar manner, note the changes to manage resources and the
link line itself.  (The linker now reads res files directly).

Finally, the temporary libraries to use are the c-run time
(crtdll) and the 'OS/2 Cheater' library os2port.lib.  See
..\quicklib for more info on this one.





                  
