Unable to open read only files |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 27 December 2006 at 10:10am |
Hi;
When trying to open a readonly file with the provided MDITextEditor sample, the CXTPSyntaxEditDoc::OnOpenDocument() returns FALSE which fails to open the document.
This is because CXTPSyntaxeditDoc::SaveFileData() is called and the default implementation returns FALSE when files with readonly flags set are opened. I did not dig deeper into code, but it looks strange that immediately after opening a file its written back.
Is this behaviour really what codejock developers wanted to implement. For me it seems more obvious to be able to open readonly files without any change in code.
|
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |