home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / mirrors / mirrors.txt < prev    next >
Encoding:
Text File  |  1993-01-18  |  8.1 KB  |  183 lines

  1. MICROGRAFX MIRRORS
  2.  
  3. Micrografx Mirrors is a set of development tools that enables
  4. Windows applications to be ported quickly to the OS/2 2.0 operating 
  5. system.  An application can be maintained for both platforms with 
  6. one set of source code. 
  7.  
  8. DEMONSTRATION FILES
  9.  
  10. In order to use the demonstration programs that accompany this text,
  11. copy the files to a directory on your hard drive and decompress them
  12. using the PKUNZIP utility.  The Windows version was intentionally compiled
  13. as a Windows 3.0 application so it would be compatible with OS/2's 
  14. seamless Windows and compatibility box.
  15.  
  16. You should have the following files:
  17.  
  18. WINLIFE.EXE    A Microsoft Windows version of the popular Life algorithm.
  19.  
  20. PMLIFE.EXE     A Presentation Manager version of the Life algorithm,
  21.                created using the same code as WINLIFE, except that it
  22.                is linked against the MIRRORS DLL.
  23.  
  24. MIRRORS.DLL    This is a 32-bit OS/2 DLL.  It is this DLL that emulates
  25.                the Windows environment for your source code.
  26.  
  27. WINLIFE.HLP    This is the Windows help file that accompanies the Life
  28.                program.
  29.  
  30. PMLIFE.HLP     This PM help file was created using the same source as that
  31.                used for the Windows version.  It was converted automatically
  32.                using the MIRHLP conversion utility.  Help for your 
  33.                application would be converted similarly.
  34.  
  35.  
  36. HOW MIRRORS WORKS
  37.  
  38. Applications for Windows and OS/2 are similar in nature. Applications in 
  39. both environments typically consist of code that processes event-
  40. generated messages. Applications in both environments access system 
  41. resources (e.g., file system, graphics system) via function calls to system 
  42. dynamic link libraries (also called DLLs). In both environments 
  43. application resources, such as icons, bitmaps and help files, are located 
  44. in separate files which are bound to the executable code. 
  45.  
  46. Although a Presentation Manager application cannot directly use 
  47. Windows resources, translating the resources from one 
  48. form into another is relatively simple. Because Windows and OS/2 are 
  49. similar and because DLLs separate system resources from the 
  50. application, Mirrors is able to emulate the Windows application 
  51. programming interface (API) on OS/2. 
  52.  
  53. The Mirrors conversion utilities convert Windows resources into 
  54. native Presentation Manager resources; the Mirrors DLLs provide Windows 
  55. emulation.  The Windows application that has been ported to OS/2 2.0 
  56. using Mirrors continues to make calls to what appears to be Windows 
  57. system DLLs. In reality, these calls are intercepted by the Mirrors DLLs 
  58. and are either passed on to the appropriate OS/2 system DLLs or to 
  59. Mirrors emulation functions written using the Presentation Manager 
  60. API.  For example, Windows dialog boxes and control classes are 
  61. implemented entirely by Mirrors.
  62.  
  63. MIRRORS COMPONENTS
  64.  
  65. The Mirrors tool kit contains a 32-bit dynamic link library that enables 
  66. a Windows application to be ported virtually unchanged to the 
  67. Presentation Manager interface. Mirrors acts as a filter between the 
  68. application code and the Presentation Manager interface. Mirrors 
  69. emulates Windows by defining all of the necessary Windows functions 
  70. in the Mirrors DLL. When an application calls a Windows function, 
  71. Mirrors accepts the call and its parameters and then implements that 
  72. function using other functions available  in the OS/2 system DLLs.
  73.  
  74. The second important part of Mirrors is the conversion utilities.  
  75. Resources, icons, help files, definition files, bitmaps, and 
  76. cursors must be converted before they can be used in the OS/2 environment.  
  77. The conversion of these is done statically using Mirrors.  That is, 
  78. conversion is done once, when the application is being ported to 
  79. Presentation Manager.  Static conversion improves the performance 
  80. of ported applications  tremendously.  After this conversion, 
  81. these resources may be used like PM resources.  They are accessed with 
  82. the same speed that native PM resources are used.
  83.  
  84. The Mirrors conversion utilities are easy to use.  They simply accept the 
  85. Windows resource, icons, cursors, and definition files as input and 
  86. output an object or file that is compatible with the OS/2 environment.
  87.  
  88. BENEFITS OF MIRROR
  89.  
  90. Mirrors provides tools that allow developers to quickly and easily port 
  91. their Windows application to the OS/2 2.0 operating system. In 
  92. particular, Mirrors
  93.  
  94. * allows developers to maintain a single set of source code for Windows and
  95.   OS/2 versions of their application
  96.  
  97. * leverages existing Windows application development
  98.  
  99. * significantly reduces the costs of porting a Windows application 
  100.   to OS/2
  101.  
  102. * enables developers to quickly move existing Windows applications to OS/2
  103.  
  104.  
  105.  
  106. OVERVIEW OF PORTING WITH MIRRORS
  107.  
  108. Porting a Windows application to Presentation Manager is simply a 
  109. matter of linking the application with the Mirrors DLLs and 
  110. the converted resources.  Special modifications of the source code are 
  111. rarely necessary.  
  112.  
  113. If the code you intend to port has conformed to good Windows coding 
  114. practices, you should be able to port the application code with little 
  115. effort.  However, if undocumented DOS function calls or other 
  116. questionable coding practices have been used, you may need to
  117. rework this.  You also may need to modify code which uses function 
  118. calls provided by a particular compiler's libraries that may not be a part 
  119. of the OS/2 development libraries.  That code must be changed to be 
  120. more independent of a specific development environment; a utility is 
  121. included with Mirrors to help identify non-portable code.
  122.  
  123. The Mirrors Host Independent API supports INT 21 and the 
  124. DOS3CALL routine supplied with Windows 3.0.  Services for these 
  125. functions are provided in the OS/2 environment by the Mirrors DLL.  
  126. These functions supply the same operations that the original DOS 
  127. interrupts performed under Windows. 
  128.  
  129. Porting a Windows application to the Presentation Manager using 
  130. Mirrors involves only a few steps:
  131.  
  132. You must translate the Windows application resource files (.RC), 
  133. definition file (.DEF), and icons into formats compatible with the OS/2 
  134. resource compiler and the OS/2 LINK program.  This is accomplished 
  135. using the conversion utilities provided with Mirrors.
  136.  
  137. Mirrors supplies its own resource compiler, called MIRRC.  This 
  138. resource compiler must be run on the resource file that your application 
  139. will use.  
  140.  
  141. The existing object modules, created by compiling the code for the 
  142. application, must be relinked, replacing the Windows libraries with 
  143. MIRRORS.LIB.  This is generally performed exactly as it would be for 
  144. Windows using a make utility, compiler and linker.
  145.  
  146. The final step is to produce the executable application by binding the 
  147. linked .EXE file with the converted resources.
  148.  
  149. If you want to use the help files that were written for your application to 
  150. run under Windows, they may also be converted using the help 
  151. conversion utilities provided with Mirrors.
  152.  
  153. CONTRACTS
  154.  
  155. Micrografx has ported a number of large, well-known applications 
  156. from Windows to OS/2.  These include WordPerfect's word processing 
  157. application and IBM's multimedia application, Columbus.  Micrografx
  158. has also ported its own award winning graphics applications, Draw!
  159. and Designer to OS/2 using Mirrors.  These porting contracts 
  160. are negotiated individually.  For more information, 
  161. contact us at (214) 994-6566. 
  162.  
  163. PRICE AND AVAILABILITY
  164.  
  165. Micrografx Mirrors is available directly from Micrografx. The 
  166. list price for Mirrors is $495.00 (U.S.).  For a limited time, developers 
  167. can purchase Mirrors for $345.00 (U.S.).  
  168.  
  169. Developers who purchase Mirrors receive six months of free technical 
  170. support and royalty-free distribution rights for any applications 
  171. developed with Mirrors. 
  172.  
  173. To place an order, fax or call Micrografx.  
  174. Phone (214) 994-6566.   
  175. FAX   (214) 994-6289.
  176.  
  177. Mirrors is a trademark of Micrografx, Inc. Micrografx Mirrors is not 
  178. affiliated with Softklone Distributing Corporation or Softklone's 
  179. MIRROR data communications products. 
  180.  
  181. Other brand and product names are trademarks or registered 
  182. trademarks of their respective holders. 
  183.