Solved

loading an externally modified file

Posted on 1998-08-28
6
201 Views
Last Modified: 2013-11-19
If we r working with a project in MSDEV and some of the files of this project is modified by an external editor, say notepad. MSDEV will ask through a dialog box if we want to reload those files. How can we overide this message box and load the file straightaway i.e. without any prompt by the MSDEV.
I know how to do it with toolbar/menu of the MSDEV "Tools>Options>Automatically reload of externally modified files ". How can we program to overide that message box...
I think there may be some solution by altering the registry values
0
Comment
Question by:Abbas071098
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:eburley
Comment Utility
Assuming your using vc 5, create a .reg file containing:

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Text Editor]
"AutoReload"=dword:00000001

or you can do that progamaticaly.
0
 

Author Comment

by:Abbas071098
Comment Utility
thanx eburley, I think ur solution would work, if so I'll certainly grade u points,can u suggest how can we program it...I am opening it to get more suggestions.
Regards, Abbas

0
 

Author Comment

by:Abbas071098
Comment Utility
Dear eberley I have tried the suggestion given by u i.e. changing the above said registry key value. But the change is reflected only when we exit from devstudio and reload it. I want the change (i.e. the feature of auto reloading) without exiting from the devstudio. I want to bring about his change when I am in MSDEV environment and don't want to exit and reload it to get the desired change.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:Abbas071098
Comment Utility
... I thought there would be lot of comments in this section but no one seem to be interested. May be many of u are taking it as the question posted early.. here the question is different. What eburley has suggested does not work for my requirement. Changing the registry entry [HKEY_CURRENT_USER\Software\Microsoft\DevStudio\5.0\Text Editor]
     "AutoReload"=dword:00000001 would certainly load the externally modified files automatically but it will come into effect only once we exit from MSDEV and reload it. I want to bring about the automatically reloading facility without exiting from the MSDEV. It is to be incorporated with the help of some external program.
I am increasing the points. Please if anyone have any idea let me know
0
 
LVL 1

Expert Comment

by:eburley
Comment Utility
the place to look would probably be in the developer studio add-ins documentation.  I don't see anything in there that would do it.  You could concievably script up the event via vb or the like, but I don't know how easy it would be to simulate the events.  In the future, be more clear about the scope and intent of your questions.  I believe I answered your original question, but since you weren't clear, I wasted your time and mine looking up an unsuitable answer.
0
 
LVL 1

Accepted Solution

by:
cwgues earned 150 total points
Comment Utility
Right what you want to do is:

Create a addin using appwizard thingy.
Tick the box saying that you want to respond to events.

One of the events is activate window.
Use the document interface to get the filename to check if this is different to the one stored internally.......

If so then use document.open to reopen it.....

HTH

Chris


 
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now