home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / autobld / readme.txt < prev    next >
Text File  |  1998-04-02  |  3KB  |  71 lines

  1. AUTOBUILD:  Performs a build of one or more workspaces at a specified time and
  2.         date.
  3.  
  4. // Copyright (C) 1992-1998 Microsoft Corporation
  5. // All rights reserved.
  6.  
  7.  
  8. This sample shows how to create and use add-ins. It demonstrates working
  9. with various parts of the Developer Studio object model, placing multiple
  10. commands into an add-in, and invoking commands from a command line.
  11.  
  12. Note: For the "Send Email" function to work, you either have to have a non-password email
  13. account, or you need to be logged into the email account at the time AutoBuild runs.
  14.  
  15. Running the Sample
  16.  
  17. Windows NT
  18. 1.  Place the AutoBld.dll in the AddIns folder under "\Microsoft Visual Studio\Common\MSDev98"
  19.         so it can be located by Developers Studio when it launches.
  20. 2.  Start Developer Studio, and on the Tools menu, click Customize.
  21. 3.  Choose the Add-ins and Macro Files tab, click the Browse button,
  22.     and load the AutoBld.dll file.
  23.     Make sure Auto Build is checked to be loaded.
  24.     Note:  AutoBuild creates a small toolbar that is visible when you
  25.     close the Customize dialog box.
  26. 4.  Click the Configure button on the newly created toolbar, and set your
  27.     preferences in the AutoBuild Configuration dialog box.
  28. 5.  Exit Developers Studio to save this configuration.
  29. 6.  From Control Panel, open the Services dialog box. Find Scheduling Agent
  30.     in the list box, and make sure its Status column indicates 'Started'
  31.     and its Startup column indicates 'Automatic'.
  32.     Note: If the Scheduling Agent's Status is not set to 'Started',
  33. highlight the Scheduling Agent and click the Start button. If its
  34.     Startup is not set to 'Automatic', click the Startup button and
  35.     select 'Automatic' in the Startup Type field on the Service dialog
  36.     box.
  37. 7.  From a command prompt, use the 'at' utility to set the time and date you
  38.     wish to build your workspaces. When giving the 'at' utility a command
  39.     line to execute, enter the following line (making sure that msdev.exe
  40.     is on your path):
  41.  
  42.     Example:
  43.  
  44.     at 06:00 /interactive msdev.exe /EX AutoBuildTest
  45.  
  46.     This will launch Developer Studio and execute the AutoBuild command at 06:00am,
  47.     which starts the build of your workspaces.
  48.  
  49. Windows 95 with Microsoft PLUS!
  50. 1.  Place the AutoBld.dll in the AddIns folder under Microsoft Visual Studio\Common\MSDev98
  51.         so it can be located by Developers Studio.
  52. 2.  Start Developer Studio, and on the Tools menu, click Customize.
  53. 3.  Choose the Add-ins and Macro Files tab, click the Browse button,
  54.     and load the AutoBld.dll file.
  55.     Make sure Auto Build is checked to be loaded.
  56.     Note:  AutoBuild creates a small toolbar that is visible when you
  57.     close the Customize dialog box.
  58. 4.  Click the Configure button on the newly created toolbar, and set your
  59.     preferences in the AutoBuild Configuration dialog box.
  60. 5.  Exit Developers Studio to save this configuration.
  61. 6.  Click the Scheduling Agent on the system tray, and add the following line
  62.     to the list of tasks to perform:
  63.  
  64.     msdev /EX AutoBuildTest
  65.  
  66.     Note: The Scheduling Agent icon appears next to the clock.  This is
  67.     visible in the system tray in the lower-right corner of your screen
  68.     (on the Start taskbar).  This is only visible if you have Microsoft
  69.     PLUS! installed.
  70. 7.  Set the time and how often you wish to execute the build.
  71.