Solved

loading an externally modified file

Posted on 1998-08-28
6
216 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
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 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

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 155
Best tools for Backup and restore of Wordpress site 6 58
fix34  challenge 9 182
Detect file exist or not 3 215
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

710 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