home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / smarts / dax / read.me < prev   
Encoding:
Text File  |  1996-02-21  |  5.5 KB  |  141 lines

  1. --------------------------------------------------------------------------------
  2. --
  3. -- COPYRIGHT:
  4. --   IBM WorkFrame - Project Smarts
  5. --   (C) Copyright International Business Machines Corporation 1996
  6. --   Licensed Material - Program-Property of IBM - All Rights Reserved.
  7. --   US Government Users Restricted Rights - Use, duplication, or disclosure
  8. --   restricted by GSA ADP Schedule Contract with IBM Corp.
  9. --
  10. --------------------------------------------------------------------------------
  11. <if ($LANGUAGE$ == SOM)>
  12.  
  13. README for Data Access Builder SOM Application
  14. ==============================================
  15.  
  16. <if ($EXECUTABLE$ == DLLOnly)>
  17. Project Smarts has generated a single project that builds a SOM DLL.
  18. You will use the Data Access Builder tool to generate SOM data access
  19. methods for your database.
  20. </if>
  21. <if ($EXECUTABLE$ == EXEOnly)>
  22. Project Smarts has generated a single project that builds a SOM EXE.
  23. The $FILE_NAME:tolower$.cpp file contains client code that uses
  24. SOM data access methods that you will generate using the Data Access
  25. Builder tool.
  26. </if>
  27. <if ($EXECUTABLE$ == EXEandDLL)>
  28. Project Smarts has generated two projects that build a SOM DLL and
  29. a EXE.  The Data Access DLL project is nested in the EXE project to
  30. express the dependencies between the EXE and DLL targets.
  31.  
  32. The $FILE_NAME:tolower$.cpp file in the main project contains client
  33. code that uses the SOM data access methods that you will generate
  34. using the Data Access Builder tool.  These data access methods are
  35. built into a DLL in the nested Data Access DLL project.
  36. </if>
  37.  
  38. <else>
  39.  
  40. <if ($LANGUAGE$ == C++)>
  41.  
  42. README for Data Access Builder C++ Application
  43. ==============================================
  44.  
  45. <if ($EXECUTABLE$ == DLLOnly)>
  46. Project Smarts has generated a single project that builds a C++ DLL.
  47. You will use the Data Access Builder tool to generate C++ data access
  48. methods for your database.
  49. </if>
  50. <if ($EXECUTABLE$ == EXEOnly)>
  51. Project Smarts has generated a single project that builds an EXE.
  52. The $FILE_NAME:tolower$.cpp file contains client code that uses
  53. C++ data access methods that you will generate using the Data Access
  54. Builder tool.
  55. </if>
  56. <if ($EXECUTABLE$ == EXEandDLL)>
  57. Project Smarts has generated two projects that build a data access DLL
  58. and a EXE.  The Data Access DLL project is nested in the EXE project to
  59. express the dependencies between the EXE and DLL targets.
  60.  
  61. The $FILE_NAME:tolower$.cpp file in the main project contains client
  62. code that uses the data access methods that you will generate
  63. using the Data Access Builder tool.  These data access methods are
  64. built into a DLL in the nested Data Access DLL project.
  65. </if>
  66. -- else if language = C++
  67. </if>
  68. -- if language = SOM
  69. </if>
  70.  
  71. -- These are common instructions on how to build the projects.
  72. Building the Project
  73. ____________________
  74.  
  75.   +---------------------------------------------------------------+
  76.   | NOTE: You cannot build this project until you perform the     |
  77.   |       following steps.                                        |
  78.   +---------------------------------------------------------------+
  79.  
  80. First, ensure that the database you wish to access is setup properly
  81. before starting the Data Access Builder.
  82.  
  83. <if ($EXECUTABLE$ == EXEandDLL)>
  84. Open the nested Data Access DLL Project.
  85. </if>
  86.  
  87. Select "Database" from the "Project" menu.  Start the Data Access Builder
  88. so you can generate the source files that contain the access methods
  89. for your table.
  90.  
  91. <if (($EXECUTABLE$ == EXEOnly) | ($EXECUTABLE$ == EXEandDLL))>
  92. In the Data Access Builder tool, select the following values:
  93.  
  94. ---------------------------------------------------------┬------------------
  95. Database name selected for creating classes:             | $DATABASE$
  96. ---------------------------------------------------------┴------------------
  97. Class Name used in the Names page of the class notebook: | $CLASS_NAME$
  98. ---------------------------------------------------------┴------------------
  99. File stem used in the Names page of the class notebook:  | $SOURCE_FILE$
  100. ---------------------------------------------------------┴------------------
  101. The generate option should be:                           | $LANGUAGE$
  102. ---------------------------------------------------------┴------------------
  103. </if>
  104.  
  105. Now, proceed to generate the data access $LANGUAGE$ source files
  106. After the files have been generated, exit the Data Access Builder
  107. tool.
  108. <if ($LANGUAGE$ == SOM)>
  109.  
  110. Note:
  111. You'll also need to generate the .xh files for the Data Access
  112. SOM Class Library, if you have not already done so.
  113. </if>
  114.  
  115. <if ($EXECUTABLE$ == EXEandDLL)>
  116. Return to the parent (EXE) project, and build it by selecting
  117. "Build Normal" under the "Project" menu.
  118. <else>
  119. Build the project by selecting "Build Normal" under the "Project" menu.
  120. </if>
  121.  
  122. <if (($EXECUTABLE$ == EXEOnly) | ($EXECUTABLE$ == EXEandDLL))>
  123. You can double click on $FILE_NAME$.EXE to run the application.
  124.  
  125. </if>
  126. <if ($LANGUAGE$ == SOM)>
  127. A note on the SOM Compile action
  128. ________________________________
  129.  
  130.   A hand-coded make file is provided with the SOM Data Access Builder
  131.   application.  This is because there is no actions support available
  132.   for the SOM Compiler to work with the MakeMake makefile generator.
  133.   As a result, make files generated by MakeMake that include the SOM
  134.   Compile action have incorrect dependency listings.
  135.  
  136.   This make file is called by the "SOM Compile Make" action in a makefile
  137.   that MakeMake generates for this project.  Other actions included in
  138.   this project's Build are Compile and Link.
  139. </if>
  140.  
  141.