Solved

loading an externally modified file

Posted on 1998-08-28
6
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:eburley
ID: 1321423
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
ID: 1321424
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
ID: 1321425
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
Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

 

Author Comment

by:Abbas071098
ID: 1321426
... 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
ID: 1321427
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
ID: 1321428
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

Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 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