Solved

How to detect document updated by external editor???

Posted on 1998-11-13
1
152 Views
Last Modified: 2013-11-20
Hi

I'm writing a simple text editor....
Let's say the user has created a new text file from my application....

While the application is still on, the user has invoked another application to edit the same file...

How do my application detect the change & refresh when the user has returned back to my application???

Thanks in advance... :-)
0
Comment
Question by:ymw1
1 Comment
 
LVL 1

Accepted Solution

by:
Bridge earned 50 total points
ID: 1324619
When you open the text file in your application set the CFile::shareExclusive file mode and you wont have to worry about it.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

705 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