home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a105 / 1.ddi / DKREADME.TXT next >
Encoding:
Text File  |  1993-03-04  |  16.2 KB  |  490 lines

  1.                        DKREADME.TXT
  2. **********************************************************
  3.   Release Notes for Microsoft(R) FoxPro(R) for MS-DOS(R)
  4.  
  5.                     Distribution Kit
  6.  
  7.                       Version 2.5
  8.  
  9.     (C)1993 Microsoft Corporation. All Rights Reserved.
  10.  
  11. This Distribution Kit corresponds to the FoxPro 2.5
  12. product version. You can confirm that this product and
  13. your FoxPro development product match by typing
  14. ? vers() in the command window of your FoxPro product. 
  15. If "FoxPro 2.5" is returned, then everything matches
  16. and you can start development.  If something else is
  17. returned, e.g. "FoxPro 2.0" or "FoxPro 2.5a", then
  18. contact Microsoft Product Support Services to determine
  19. what you need to update.
  20. **********************************************************
  21. ========
  22. CONTENTS
  23. ========
  24.  
  25. Part   Description
  26. ----   -----------
  27.  
  28. 1      Knowledge Base Articles
  29.  
  30. 2      Changes to Documentation Since Printing
  31.  
  32. 3      Answers to Commonly Asked Questions
  33.  
  34. 4      Error Messages
  35.  
  36. ================================
  37. Part 1:  Knowledge Base Articles
  38. ================================
  39.  
  40. If you installed the Knowledge Base articles, you can
  41. view them by choosing "Run Application" and then choose
  42. KBVIEW.APP.  These articles contain useful information
  43. about a variety of FoxPro topics.
  44. ----------------------------------------------------------
  45.  
  46. ================================================
  47. Part 2:  Changes to Documentation Since Printing
  48. ================================================
  49.  
  50. Chapter 1, page 2:  The first bulleted item should read:
  51.  
  52. "The Distribution Kit files, in both 5.25-inch and
  53. 3.5-inch disk formats."
  54. ----------------------------------------------------------
  55.  
  56. Chapter 2, page 10, under "Available Runtime Menus and Menu
  57. Options," the File menu item should read:
  58.  
  59. File menu: Close, Save, Save As and Revert
  60. ----------------------------------------------------------
  61.  
  62. Chapter 2, page 11, under "Features Not Available in
  63. Distributed Applications," add the following section below
  64. the "Menus" section:
  65.  
  66. Menu Pads
  67.  
  68. The following FoxPro menu pads aren't available in the
  69. applications you distribute.
  70.  
  71. SYSTEM Menu:  Macros..., Filer
  72.   FILE Menu:  New..., Open..., Printer setup...,
  73.               Print..., Quit
  74. WINDOW Menu:  Color..., Command, Debug, Trace, View
  75. ----------------------------------------------------------
  76. The file names for files with extension .ESL or .ESO now
  77. include a 'D' to indicate an MS-DOS file and '25' to
  78. indicate a Version 2.5 file.  For example:
  79.  
  80. FOXPRO.ESL is now FOXD2500.ESL
  81. FOXPRO.ESO is now FOXD2500.ESO
  82. FOXPROX.ESL is now FOXDX250.ESL
  83.  
  84. The new file names impact the following pages in the
  85. Distribution Kit User's Guide:
  86.  
  87. Chapter 1, page 5, the Distribution Kit Files table.
  88.  
  89. Chapter 3, page 22, change the last sentence to read:
  90.  
  91. "The .EXE Support Library consists of three files:
  92. FOXD2500.ESL, the standard .EXE Support Library
  93. FOXD2500.ESO, and the 32-bit Extended .EXE Support
  94. Library FOXDX250.ESL."
  95.  
  96. Chapter 5, page 32, the table called Files Required on
  97. Distribution Disks Based on Type of Application has
  98. these changes: 
  99.  
  100. In the "You must also distribute these files" column,
  101. substitute the .ESL and .ESO file names with the new
  102. File names.
  103. ----------------------------------------------------------
  104.  
  105. Chapter 2, page 15, under the heading "Help in a Project"
  106. add the following information:
  107.  
  108. "If your help files are included in your project but
  109. marked as excluded, you must distribute the .DBF and .FPT
  110. files with your application. These files can be changed by
  111. the user. If you don't want your users to have the ability
  112. to change the contents of your help files, include them in
  113. your project, but don't mark them as excluded."
  114. ----------------------------------------------------------
  115.  
  116. Chapter 5, page 33, the Files Your Application May
  117. Require table should include DRIVER2.PLB as a file your
  118. application may require.  This file contains printer 
  119. drivers.  You must distribute this file if your
  120. application requires printer drivers.
  121. ----------------------------------------------------------
  122. ============================================
  123. Part 3:  Answers to Commonly Asked Questions
  124. ============================================
  125.  
  126. *License Agreement*
  127.  
  128. Question 1
  129.  
  130. Our organization includes several FoxPro developers.
  131. Does each developer need an individual copy of the
  132. Distribution Kit?
  133.  
  134. Answer 1
  135.  
  136. Your organization must own one licensed copy of the
  137. Distribution Kit per developer, for each developer
  138. creating applications for distribution. If five
  139. developers in your organization create applications for
  140. distribution, you must own five licensed copies of the
  141. Distribution Kit.
  142. ----------------------------------------------------------
  143.  
  144. Question 2
  145.  
  146. What type of applications (single-user, multi-user) can
  147. be built with the Distribution Kit?
  148.  
  149. Answer 2
  150.  
  151. You can build all types of applications (single-user,
  152. multi-user) with the Distribution Kit.  While FoxPro
  153. version 2.0 required separate license agreements for
  154. single-user, multi-user, and so forth, FoxPro version
  155. 2.5 no longer makes these distinctions.  However, as
  156. mentioned in Answer 1, in order to be legal, you must
  157. own one licensed copy of the FoxPro 2.5 MS-DOS
  158. Distribution Kit for each developer creating FoxPro
  159. 2.5 for MS-DOS applications for distribution.
  160. ----------------------------------------------------------
  161.  
  162. Question 3
  163.  
  164. I have a question regarding the legal requirements for
  165. reselling applications developed with FoxPro.  Let's say
  166. that, as a FoxPro developer, I write a program for
  167. Client A.  I compile the program as a compact .EXE file
  168. and give the application to Client A, together with the
  169. *.ES? Library files with which to run the application.
  170. Client A owns the application and the copyright.  Client
  171. A then sells the application commercially to many other
  172. people.
  173.  
  174. Question 3.1
  175.  
  176. Does Client A also have to purchase the Distribution Kit,
  177. even though Client A will never use the Distribution Kit
  178. themselves?
  179.  
  180. Answer 3.1
  181.  
  182. No, Client A does not need to purchase the Distribution
  183. Kit. Only the developer who uses the Distribution Kit to
  184. build the original .EXE file must own a licensed copy of
  185. the Distribution Kit.
  186.  
  187. Question 3.2 
  188.  
  189. Does Client A have to purchase the FoxPro 2.5 development
  190. system?
  191.  
  192. Answer 3.2
  193.  
  194. Client A does not have to purchase FoxPro 2.5 because
  195. the client is not building their own .EXE; Client A is
  196. just reseller.  Client A must distribute the application
  197. in its original form, however, and cannot remove the
  198. runtime files to include the application with another
  199. application. 
  200.  
  201. Question 3.3 
  202.  
  203. Does the above also apply to stand-alone .EXE files?
  204.  
  205. Answer 3.3
  206.  
  207. Yes.
  208. ----------------------------------------------------------
  209.  
  210. *Installation*
  211.  
  212. Question 1
  213.  
  214. Why is Build Executable dimmed after I install the Distribution
  215. Kit?
  216.  
  217. Answer 1
  218.  
  219. Two possible reasons: First, is the Distribution Kit must
  220. be installed in your FoxPro directory. Ensure that the
  221. FoxPro files are not marked as read-only before installing
  222. the Distribution Kit. Second, the project does not include
  223. a SET MAIN program. Select the main menu or program, then
  224. choose Main from the Project menu.
  225. ----------------------------------------------------------
  226.  
  227. *Building a Stand-Alone .EXE*
  228.  
  229. Question 1
  230.  
  231. When I compile an .EXE file, the process stops with a
  232. "Cannot Open File" error message that refers to a
  233. Distribution Kit program file.  When I grant all access
  234. rights (except for delete) to the program directory, the
  235. program compiles.  However, the compilation process
  236. leaves several files in the program directory with names
  237. like WLK02112.--A, WLK02112.--B, WLK02112.--C, and so on.
  238. What are these files?
  239.  
  240. Answer 1
  241.  
  242. Compiling program files in the FoxPro Distribution Kit
  243. places temporary files in the directory from which you
  244. start FoxPro. The TMPFILES statement in the CONFIG.FP
  245. file does not affect file placement.
  246.  
  247. Include the full path to the network drive and directory
  248. where the FoxPro development and distribution programs
  249. are installed. Start FoxPro from a user directory
  250. that has all rights, including erase or delete rights,
  251. assigned to it.  The process of compiling using the
  252. Distribution Kit creates files in and deletes files from
  253. the user directory. The system administrator can designate
  254. the program directory read only.
  255. ----------------------------------------------------------
  256.  
  257. *Runtime Issues*
  258.  
  259. Question 1
  260.  
  261. I have created an application that does not allow me to
  262. edit my table/.DBF files. How can I correct this problem?
  263.  
  264. Answer 1
  265.  
  266. Mark your table/.DBF as excluded in the project, then
  267. rebuild your application. You must distribute these files
  268. to your end users. Including the table/.DBF in the project
  269. automatically makes these files read only.
  270. ----------------------------------------------------------
  271. Question 2
  272.  
  273. When I launch my .EXE using a loader, in what order will
  274. the loader search for the .ESL Support Library files?
  275.  
  276. Answer 2
  277.  
  278. The loaders look for the ESL files starting in the .EXE's
  279. directory, then in the current working directory and
  280. finally, down the operating system's path.
  281. ----------------------------------------------------------
  282. Question 3
  283.  
  284. How do you instruct an MS-DOS .FXP, .APP or compact .EXE 
  285. file to run in extended mode from within Windows?
  286.  
  287. Answer 3
  288.  
  289. An .FXP, .APP or .EXE file will run in standard mode when 
  290. run from within Windows, even though there is enough 
  291. memory for the extended mode Support Library to run.  To 
  292. force use of the Extended Support Library from within 
  293. Windows, you can use the +X loader switch to launch your 
  294. application.
  295. ----------------------------------------------------------                      
  296. =======================
  297. Part 4:  Error Messages
  298. =======================
  299.  
  300. Message: "Feature Not Available"
  301.  
  302. Question 1
  303.  
  304. My executable file runs correctly in the development
  305. version of FoxPro, but I receive the error message
  306. "Feature Not Available" when running the stand-alone
  307. application. How can I correct this problem?
  308.  
  309. Answer 1.1
  310.  
  311. You will get the "Feature not available" error message
  312. when you use commands, features, and menus that require
  313. the developmental version of FoxPro. Three specific 
  314. instances are listed below. You can also refer to the
  315. "Features Not Available in Distributed Applications" 
  316. list in the FoxPro Distribution Kit User's Guide.
  317.  
  318. - When using commands that require the execution and
  319.   compilation of source code. These commands require
  320.   the development version of FoxPro and therefore are
  321.   not available in a distributed .APP or .EXE file.
  322.   Examples of these types of commands are BUILD APP,
  323.   BUILD EXE, BUILD PROJECT, COMPILE, FILER, 
  324.   CREATE/MODIFY MENU, CREATE/MODIFY QUERY,
  325.   CREATE/MODIFY SCREEN, SET VIEW ON, and SUSPEND.
  326.  
  327. - When using features specific to the interactive
  328.   development environment of FoxPro, such as the Trace,
  329.   Debug, Command, and View windows.
  330.  
  331. - When using FoxPro menu options available only in the
  332.   development version. For the reasons mentioned above,
  333.   many of the original FoxPro menu options are not
  334.   available for distribution.  In addition, since there
  335.   is no Command window in applications compiled using
  336.   the Distribution Kit, any menu option whose command
  337.   is echoed to the Command window is not available.
  338.   The list of menu items that ARE available in a
  339.   distributed .FXP, .APP, OR .EXE files can be found in
  340.   the section "Available Runtime Menus and Menu Options"
  341.   in Chapter 2 of the FoxPro Distribution Kit User's
  342.   Guide.
  343.  
  344. Answer 1.2
  345.  
  346. You will get the "Feature not available" error message
  347. when using commands containing macro substitution in
  348. a stand-alone .EXE file. When you compile a stand-alone
  349. .EXE file, the compiler includes only the code necessary
  350. to run the commands explicitly included in the
  351. application.  If there is macro substitution anywhere
  352. in a line of code, that entire line is skipped, since
  353. FoxPro does not explicitly "see" the command referenced
  354. by the macro-substituted variable. The result is that
  355. the code to execute the substituted command is not built
  356. into the .EXE file.
  357.  
  358. The following examples illustrate two methods for
  359. ensuring that macro-substituted commands are included
  360. in your compiled .EXE file:
  361.  
  362. Example 1
  363.  
  364. As a developer you might want to allow the user to
  365. choose either reports or labels by storing the choice
  366. "report" or "label" in a memory variable called
  367. m.output. You could then store the file name in the
  368. memory variable m.filename.  You would include the
  369. following command to run the report or labels in your
  370. application:
  371.  
  372. &output FORM &filename TO PRINT NOCONSOLE
  373.  
  374. The Distribution Kit compiler will successfully create
  375. a stand-alone .EXE file with this code. However, when
  376. FoxPro attempts to execute the command, you will get a
  377. "Feature Not Available" runtime error because the code
  378. for the REPORT FORM and the LABEL FORM commands is not
  379. included in the .EXE file. To avoid this problem,
  380. include the following If statement at the beginning of
  381. your application:
  382.  
  383.   IF .F.
  384.     REPORT FORM dummy
  385.     LABEL FORM dummy
  386.   ENDIF
  387.  
  388. The file names do not have to exist.  The IF .F.
  389. guarantees the code will never be executed. You are
  390. simply making these commands visible to the compiler.
  391.  
  392. Example 2
  393.  
  394. This code example illustrates the use of macro
  395. substitution for the PACK command. Because the code
  396. does not explicitly issue the PACK command, FoxPro does
  397. not include the required code in the stand-alone .EXE
  398. file. An attempt to run the PACK command from the macro
  399. substitution fails.
  400.  
  401. testcom="pack"
  402. &testcom
  403.  
  404. To address this situation, create another procedure,
  405. such as the following, and include it in the project.
  406.  
  407. procedure addon
  408. pack
  409. return
  410. ----------------------------------------------------------
  411.  
  412. Message: "Dynamic memory exhausted"
  413.  
  414. Question 1
  415.  
  416. What is the cause and solution for a "Dynamic memory
  417. exhausted" error message when compiling a stand-alone
  418. .EXE file?
  419.  
  420. Answer 1
  421.  
  422. This error message is sent by the WATCOM linker, which
  423. is one of the tools in the FoxPro Distribution Kit used
  424. to create a stand-alone application.  The message is
  425. displayed when the amount of available conventional
  426. memory is too low.  The WATCOM linker (WLINK8.EXE) uses
  427. only conventional memory.
  428.  
  429. If the CONFIG.FP file contains the DOSMEM=ON statement,
  430. edit the file to remove the statement. If the CONFIG.FP
  431. file does not contain a DOSMEM statement, edit the
  432. AUTOEXEC.BAT and CONFIG.SYS files to remove unnecessary
  433. device drivers and memory-resident applications to
  434. maximize available conventional memory.
  435. ----------------------------------------------------------
  436.  
  437. Message: "Link command failed"
  438.  
  439. Question 1
  440.  
  441. When I attempt to build an executable file, I receive the
  442. error message "Link command failed."  How can I correct
  443. this problem?
  444.  
  445. Answer 1
  446.  
  447. If you receive this error message, check the following
  448. items:
  449.  
  450. a. Make sure that enough conventional memory is available.
  451.    Modify the CONFIG.SYS and AUTOEXEC.BAT files to free
  452.    conventional memory.
  453.  
  454. b. Make sure that enough disk space is available.
  455.  
  456. c. Increase the number of file handles available to
  457.    Microsoft FoxPro for MS-DOS.  To do this, you can
  458.    modify the FILES statement in the CONFIG.SYS file to
  459.    increase the number of available files. In the Novell
  460.    NetWare environment, modify the FILE HANDLES
  461.    statement in the SHELL.CFG file to increase the number
  462.    of available files.
  463.  
  464. d. If the AUTOEXEC.BAT file loads the SHARE utility,
  465.    increase the values specified by the /F and /L 
  466.    parameters. For example:
  467.  
  468.    SHARE /F:5120 /L:500
  469.  
  470. e. Make sure that FoxPro can find your COMMAND.COM file.
  471.    Modify the SHELL statement in the CONFIG.SYS file to
  472.    specify the /P (permanent) option switch.  Be sure
  473.    SHELL= or COMSPEC= is set for the proper path to
  474.    COMMAND.COM.
  475.  
  476. f. Make sure that the following files are in a directory
  477.    listed in the MS-DOS PATH environment variable in the
  478.    AUTOEXEC.BAT file:
  479.  
  480.    WLINK8.EXE and FOXSWAP.COM.
  481.  
  482. g. If you are running the Extended Version of FoxPro,
  483.    remove the DOSMEM=ON statement (if it is present) from
  484.    the CONFIG.FP file.
  485.  
  486.                     *******************
  487.                     END OF DKREADME.TXT
  488.                     *******************
  489.  
  490.