FILE: AutoSave.exe Provides AutoSave for Visual C++ (248130)



The information in this article applies to:

  • Microsoft Visual C++, 32-bit Enterprise Edition 5.0
  • Microsoft Visual C++, 32-bit Enterprise Edition 6.0
  • Microsoft Visual C++, 32-bit Professional Edition 5.0
  • Microsoft Visual C++, 32-bit Professional Edition 6.0
  • Microsoft Visual C++, 32-bit Learning Edition 6.0

This article was previously published under Q248130

SUMMARY

AutoSave.exe is a unsupported add-in sample that provides an autosave feature for Visual C++. The AutoSave add-in saves the currently open workspace in Visual C++ after a specified time interval.

The AutoSave add-in is based on the Developer Studio Object Model and Microsoft Foundation Classes (MFC).

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

The self-extracting AutoSave.exe file contains the following files:

Commands.cpp3KB
Commands.h2KB
DSAddIn.cpp4KB
DSAddIn.h2KB
AutoSave.cpp5KB
AutoSave.def1KB
AutoSave.dsp5KB
AutoSave.dsw1KB
AutoSave.h1KB
AutoSave.odl2KB
AutoSave.rc6KB
AutoSave.clw4KB
AutoSave_i.c2KB
AutoSaveConfig.cpp4KB
AutoSaveConfig.h2KB
AutoSaveTypes.h6KB
Resource.h1KB
StdAfx.cpp1KB
StdAfx.h3KB
AutoSave.rc21KB
TBarLrge.bmp2KB
TBarMedm.bmp1KB

Steps to Install the Add-In

  1. Run AutoSave.exe to extract the Visual C++ project.
  2. Build the project in Visual C++ in Release or Debug configuration.
  3. In Visual C++, click Customize from the Tools menu.
  4. In the Customize dialog box, click the Add-Ins and Macro Files tab.
  5. Click the Browse button and locate the AutoSave.dll file that was built in step 2.
  6. Click OK to save the settings. A toolbar with the AutoSave command appears.

Using the AutoSave Add-In

Click on the AutoSave button to launch the AutoSave Configuration dialog box. This dialog has an edit box where you can enter the time in minutes; the default setting is 3 minutes. Click Start to start the timer and Stop to stop it.

The timer setting is stored in the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\AutoSaveAddIn
					

REFERENCES

See the following topics in the MSDN Library for Visual C++ 6.0 for documentation on Visual C++ Automation:

MSDN Library; Visual Studio Documentation; Visual C++ Documentation; Using Visual C++; Visual C++ User's Guide; Automating Tasks in Visual C++


Modification Type:MinorLast Reviewed:8/5/2004
Keywords:kbdownload kbAutomation kbDevStudio kbfile kbhowto kbide kbSample KB248130 kbAudDeveloper