AutoSave Add-In for Visual Studio 6.0
Environment: Visual C++ 6, Windows NT and Windows 9x
This add-in adds an auto-save feature to Visual Studio.
When invoked, a dialog box is opened in which the user
can set a periodic save interval, and enable/disable
automatic saving.

Setup
Copy AutoSave.dll to any place you want. A good place
would be under the Microsoft Visual Studio folder at
Common\MSDev98\AddIns
Open Visual Studio and select: Tools | Customize...
Go to the Add-ins and Macro files tab and click on
the Browse button.
Go to the folder to which you copied AutoSave.dll and
select it. Make sure the Files of type listbox is on
Add-ins (.dll).
When closing the dialog, a toolbar will appear with
the Auto File Save button. Using the customize dialog you
can move this button to any other toolbar (if you
want to).
Press the button to setup the auto-save period and
make sure you enable auto-save by selecting the
checkbox.
Possible problems
These is a bug in Visual Studio which causes it to lock up when the add-in starts saving while an IntelliSense Complete Word popup is being displayed. I don't have a workaround at this time. I'd appreciate any help with this problem.
There is another known "feature":
When working with source-safe IDE integration while the project
(dsp and/or dsw files) is not checked out, but you have changed
the project settings, the add-in will ask you to check out the
project when it is attempting to save it. You can just cancel
the request if you don't want to check out, but this will happen
periodically with the save. You can also disable saving the
workspace and save only the files.
This add-in was built with Visual C++ 6.0 with service
pack 3. I haven't tested it with other versions, so
you can take your chance. I heard from people that it
works fine with DevStudio/Visual C++ 5.
If the add-in doesn't "remember" its previous settings
between Visual Studio sessions, check the registry for
the following key:
HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0
This is where Visual Studio saves its data and where
the add-in creates its sub-keys. If it doesn't exist
you may have a Visual Studio setup problems.
If the key exists, it should have the following sub-key:
AddIns\AutoSave.DSAddIn.1
This is where the add-in saves its data. If the key
doesn't exist, create it manually and see if it works.
Version History
Copyrights again. Someone is really threatened by this little freeware open source add-in. So now it has no name at all.
Nothing serious. Someone claimed I violated his copyrights so I changed the name of this add-in from AutoSave to VsAutoSave.
DllRegisterServer worked only when logged in as administrator. Now it will work in any case (thanks to Petr Smilauer).
Separated saving the files and the workspace to two options. You can now configure the add-in to save only the files and leace the wrokspace or vice-versa. The URL and e-mail fields in the about dialog are now active.
Added about dialog with version and contact information.
After installing, the auto saving is enabled by default.
Fixed a big bug that prevented Visual Studio from
terminating successfully.
First release outside my small beta tester comunity.
Freeware
This software is free. It is distributed with the
source code and you are encouraged to do anything you
want with it. If you do anything interesting, I'd be
happy to hear about it.
For comments, suggestions, improvements, bug reports, etc. please contact at the address given above.
Download
Download AutoSave - 19 KbDownload source - 21 Kb

Comments
Its a doubt not a comment please Its URGENT!!!
Posted by Legacy on 08/02/2002 12:00amOriginally posted by: Divya
Hello Sir,
Is it saving already saved files? or can we save automatically.. I will explain u suppose i have opened new notepad (anything where I want to work i.e like it will come untitled na)So I didnt saved Iam going on writing...suddenly power goes Iwill loose the data but what I want is when we opened any new win our program should save that in temp folder so..please help me out ..Its very URGENT..please reply me..I will be waiting for your reply.....(divya319@yahoo.com)
ReplyThanu Divya
invoke save from user function
Posted by Legacy on 02/19/2002 12:00amOriginally posted by: tim
ReplyVisual Studio Macros
Posted by Legacy on 02/11/2002 12:00amOriginally posted by: anon.
How do you get this addin to work with VS.NET?
ReplyA Class Hierarchy Visualization Tool
Posted by Legacy on 05/28/2001 12:00amOriginally posted by: Steven Zee
DocBuilder allows developers to quickly visualize and document the class structure of C++?code by generating a color-keyed diagram of a project's class hierarchy. DocBuilder can automatic generate html files with the class information, and even generate a whole html help project file to you . Produce class-level documentation by exporting the class hierarchy for each individual class as a graphics file. You can paste the graphics files into reports, system documentation, and even web pages. for more information about docbuilder,please visit http://www.ucancode.net
ReplyUpdated the add-in with the lockup workaround
Posted by Legacy on 02/28/2000 12:00amOriginally posted by: Itay Szekely
I updated the add-in with Tadeusz's workaround. There's a new checkbox in the add-in's dialog to enable/disable this feature. Personally I don't use auto complete (I can't stand the delays) so why suffer from those blinks.
This feature is selected by default.
Download the updated sources and DLL from my website: http://come.to/itay
Thanks
ReplyLockUp workaround
Posted by Legacy on 02/22/2000 12:00amOriginally posted by: Tadeusz Dracz
Before saving the documents or the workspace it is necessary to get rid of the IntelliSense Complete Word popup. It can be achieved by simply setting a focus to a different window or make an other window active for a moment. Because the popup is very sensitive to these actions it will dissappear. It can be done for example by adding the following code:
void TimerWindow::OnTimer(UINT nIDEvent)
{
CFrameWnd::OnTimer(nIDEvent);
if (m_saveFiles || m_saveWorkspace)
{
HWND h = ::GetForegroundWindow();
HWND h1 = ::GetDesktopWindow();
::SetForegroundWindow(h1);
::SetForegroundWindow(h);
}
// and the rest remains the same
It isn't however the perfect solution because the main Dev Studio window flickers before saving but it works at least.
ReplyChanged the name of the add-in
Posted by Legacy on 11/23/1999 12:00amOriginally posted by: Itay Szekely
Hello Again
Seems like this product's name was in violation of someone's copyrights, so I had to change the name to VsAutoSave. This wasn't good enough so now this add-in has no name at all, and can be refered to as "Itay's auto file save add-in for VS".
What can I do? Some people's living comes from annoying other people who really work.
You can download the new add-in (version 1.03.1) from http://www.geocities.com/SiliconValley/Park/2230/autosave/autosave.zip
Download the source code from http://www.geocities.com/SiliconValley/Park/2230/autosave/autosave_source.zip.
You can always check for updates at my homepage: http://come.to/itay
ReplyMinor fixes: it will now compile
Posted by Legacy on 08/15/1999 12:00amOriginally posted by: Itay Szekely
ReplySource code does not compile...
Posted by Legacy on 07/31/1999 12:00amOriginally posted by: Mario M.
Hi,
The source code does not compile, resource.hm is missing, and the makehelp.bat file (which creates the resource.htm) is also missing...
Very useful tool, but you should use threads instead of a timer, timers in windows eats a lot of CPU time, and sometimes can hang your computer if the timer cannot execute itself for a long period of time...
Best Regards,
Mario M.
E-Mail: us@us.dnttm.ro
Reply