Solved

loading an externally modified file

Posted on 1998-08-28
6
203 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
has77  challenge 9 72
Execute multiple curl cmds with sleep and send output to file 10 88
wordappend challenge 8 145
unix example issues 18 73
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

912 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

17 Experts available now in Live!

Get 1:1 Help Now