home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR13 / TI_BC1.ZIP / TI1562.ZIP / TI1562.ASC
Text File  |  1993-10-05  |  6KB  |  265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Borland C++                           NUMBER  :  1562
  9.   VERSION  :  All
  10.        OS  :  DOS/WIN
  11.      DATE  :  October 5, 1993                          PAGE  :  1/4
  12.  
  13.     TITLE  :  Recreating project files
  14.  
  15.  
  16.  
  17.  
  18.        RECREATING LOST OR DELETED PROJECT FILES
  19.        ----------------------------------------
  20.  
  21.   This information is provided for Borland customers using the
  22.   Integrated Development Environment(IDE) project files feature
  23.   that will create, add and delete items from a project.  Should a
  24.   project file need to be recreated because it was lost or deleted,
  25.   there is a way to recreate them faster than adding each item one
  26.   at a time by hand from within the IDE.
  27.  
  28.   To view the document pertaining to the reasons why project files
  29.   may need to be deleted see TI731, titled "Project Files
  30.   Corruption", which can be found on the Borland BBS, on
  31.   CompuServe, Bix, or Genie, and through the fax service, TechFax.
  32.  
  33.        THE HISTORY OF PROJECT FILES
  34.        ----------------------------
  35.  
  36.   When Turbo C++ 3.0 was released there was a need for many people
  37.   to be able to convert their project files from ealier versions of
  38.   our C products, such as Turbo C 1.0 or 2.0, to Turbo C++ 3.0
  39.   project files.  The utility project convert (prjcnvt.exe) was
  40.   provided for this task.
  41.  
  42.   Earlier project files were ASCII files with a listing of the
  43.   files that were in the project.  They looked something like this:
  44.  
  45.        mymain.c
  46.        myfuncs.c
  47.        library.lib
  48.        objects.obj
  49.  
  50.  
  51.        USING PROJECT CONVERT
  52.        ---------------------
  53.  
  54.   The syntax of project convert is as follows:
  55.  
  56.        PRJCNVT infile[.prj] [outfile[.prj]]
  57.             or
  58.        PRJCNVT infile[.tc]  [outfile[.prj]]
  59.  
  60.   If no extension is provided .TC is assumed.  If a .TC file is not
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Borland C++                           NUMBER  :  1562
  75.   VERSION  :  All
  76.        OS  :  DOS/WIN
  77.      DATE  :  October 5, 1993                          PAGE  :  2/4
  78.  
  79.     TITLE  :  Recreating project files
  80.  
  81.  
  82.  
  83.  
  84.   found a .PRJ file will be looked for.  The default name of the
  85.   output file is the base name of the input file with the extension
  86.   .PRJ (i.e. FOO.TC will become FOO.PRJ).  If the input and the
  87.   output name are the same, the the old file will be renamed to a
  88.   .BAK file.
  89.  
  90.  
  91.        RECREATING PROJECT FILES - THE PROCESS
  92.        ----------------------------------------
  93.  
  94.   A sample of the entire process is as follows:
  95.  
  96.        1) Redirect the output from a DOS dir/B command to a file.
  97.           This will list all the files in the current directory in
  98.           a single column.
  99.  
  100.             *c:\work> dir/B > output.prj
  101.  
  102.           Here is an example of what you might get:
  103.  
  104.             SUBDIR1
  105.             SUBDIR2
  106.             mymain.cpp
  107.             myfuncs.cpp
  108.             library.lib
  109.             objects.obj
  110.             header.h
  111.             myother.cpp
  112.             other.txt
  113.  
  114.        2) Edit the file to delete any unnecessary file names and
  115.           subdirectories.
  116.  
  117.             *c:\work> edit output.prj
  118.  
  119.           If we were working with the above file, it should now
  120.           look like this:
  121.  
  122.             mymain.cpp
  123.             myfuncs.cpp
  124.             library.lib
  125.             objects.obj
  126.             myother.cpp
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Borland C++                           NUMBER  :  1562
  141.   VERSION  :  All
  142.        OS  :  DOS/WIN
  143.      DATE  :  October 5, 1993                          PAGE  :  3/4
  144.  
  145.     TITLE  :  Recreating project files
  146.  
  147.  
  148.  
  149.  
  150.        3) Use the prjcnvt command to create the new project file.
  151.  
  152.             *c:\work> prjcnvt output.prj myprog.prj
  153.  
  154.        4) Start the IDE.
  155.  
  156.        5) ASCII text files do not contain any sort of compiling
  157.           options, so memory models and paths must be set again by
  158.           hand from within the IDE.
  159.  
  160.        6) After resetting any options, the configuration must be
  161.           saved IMMEDIATELY in order to ensure that the information
  162.           is not lost.  This can be done via Options | Environment
  163.           | Save, making sure Project is marked with an [X] and
  164.           selecting OK.
  165.  
  166.  
  167.        TIPS AND HINTS
  168.        --------------
  169.  
  170.   It might be wise to do two things before continuing:
  171.  
  172.        Turn off the autosave feature when compiling and debugging
  173.        within the IDE.  Problems in code being debugged can corrupt
  174.        project files, resulting in confusing and eroneous errors.
  175.        By turning off the Autosave feature for projects and
  176.        desktops, we significantly reduce the chances of saving a
  177.        corrupted project or desktop file.
  178.  
  179.        To turn off autosave:
  180.  
  181.             Select Options | Environment | Preferences and in the
  182.             dialog box shown, turn off the [X] next to the project
  183.             line in the Auto Save box.
  184.  
  185.             Select Options | Save and turn ON the [X] for
  186.             Environment and Project. (This is the way to save all
  187.             options changes by hand as well)
  188.  
  189.        Make a copy of all project files.  Put them in a separate
  190.        directory.  Thus if corruption or loss should occur again,
  191.        there is an available copy that can be used easily.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Borland C++                           NUMBER  :  1562
  207.   VERSION  :  All
  208.        OS  :  DOS/WIN
  209.      DATE  :  October 5, 1993                          PAGE  :  4/4
  210.  
  211.     TITLE  :  Recreating project files
  212.  
  213.  
  214.  
  215.  
  216.   DISCLAIMER: You have the right to use this technical information
  217.   subject to the terms of the No-Nonsense License Statement that
  218.   you received with the Borland product to which this information
  219.   pertains.
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.