home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dtswps.zip / DTSFILES.ZIP / README.2ND < prev    next >
Text File  |  1996-06-27  |  3KB  |  86 lines

  1. /******************************************************************************
  2. *
  3. *  README.2ND
  4. *
  5. *  OS/2 DTS C++ Support Package and Work Place Shell Sample Program
  6. *
  7. *  Copyright (C) 1995, 1996 IBM Corporation
  8. *
  9. *      DISCLAIMER OF WARRANTIES.  The following [enclosed] code is
  10. *      sample code created by IBM Corporation. This sample code is not
  11. *      part of any standard or IBM product and is provided to you solely
  12. *      for  the purpose of assisting you in the development of your
  13. *      applications.  The code is provided "AS IS", without
  14. *      warranty of any kind.  IBM shall not be liable for any damages
  15. *      arising out of your use of the sample code, even if they have been
  16. *      advised of the possibility of such damages.
  17. *
  18. ******************************************************************************/
  19.  
  20. You have reached this point by following the directions in README.1st:
  21.  
  22.        mkdir <DIR>
  23.        cd <DIR>
  24.        pkunzip -d dtsfiles.zip
  25.  
  26. Now, you need to arrange that OS/2 is using the som.dll just extracted into
  27. <DIR> (this is a development build of som.dll at the level of the SOMobjects
  28. CSD 2.1.3, as are all other files to the extent possible). To do this, edit
  29. the LIBPATH line in your config.sys so <DIR> comes first, and then reboot.
  30. Then continue with the following:
  31.  
  32.  
  33.        cd <DIR>
  34.        .\setdts <DIR>
  35.  
  36. This sets up path environment variables so that the files in <DIR> will take
  37. precidence over others that might be installed on your system. This will provide
  38. a completely consistent SOM 2.1 environment for working thru the examples that
  39. follow.
  40.  
  41. Then continue with the following, which will create the DTS C++ headers for
  42. the IDL files in in <DIR>.
  43.  
  44.        sc -shh -musehpass *.idl
  45.  
  46. Once you've done this, you should be able to do:
  47.  
  48.        icc 1.cpp
  49.        1.exe
  50.  
  51. This verifies correct installation of the files in this package and the correct
  52. operation of the DTS C++ compiler on the header files created in the previous
  53. step. The output from running the executables should look like:
  54.  
  55.          {An instance of class SOMClassMgr at address 00076DD0}
  56.  
  57. If the previous step was successful, you should be able to do the following, which
  58. verifies correct operations of the DTS C++ implementation template emitter. You
  59. should see no errors or warnings.
  60.  
  61.        sc -shc 2.idl
  62.        icc -c 2.cpp
  63.  
  64. Finally, to verify that the WPS header files generated above are acceptable to the
  65. DTS C++ compiler, you can do the following. You should see no errors or warnings.
  66.  
  67.  
  68.        icc -c 3.cpp
  69.  
  70. After these checks, you can cd to EXAMPLE and do the following:
  71.  
  72.        nmake clean
  73.        nmake
  74.        install <LIBDIR>
  75.        dinstall <LIBDIR>
  76.  
  77. where <LIBDIR> is some directory in your libpath where ex1.dll will placed,
  78. and then deleted. For example, LIBDIR can be .. if you added <DIR> to your LIBPATH
  79. and rebooted, as suggested above.
  80.  
  81. This will build, install, and uninstall the example used in the OS/2
  82. Magazine article titled, "WPS Programming with DTS C++". After running install,
  83. you can right mouse click on the Ex1 Folder on your desktop, and then select
  84. "Do Ex1 Thing" to test the new functionality added to folders by the Ex1 class.
  85.  
  86.