Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

loading an externally modified file

Posted on 1998-08-28
6
Medium Priority
?
243 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
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

916 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