This blog is about developing Windows applications using Visual Studio. All postings on this weblog are provided "AS IS" with no warranties, and confer no rights. Use of any samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Your host Nikola Dudar is a Program Manager in Windows division of Microsoft Corporation. He has been working on Windows Web Services API during Windows 7 and various additions to Visual C++ during VS2005 and VS2008. More details are in LinkedIn profile under Nikola's formal name Mykola Dudar.
If you are interested in program management and project management, check out my other blog at http://www.pmsnack.com/ where I collect best practices and other topics interesting to program and project managers.
To send feedback, comments or requests for new posts, please use the contact form.
Today VS2008 SP1 pop up an error dialog when I was editing MFC dialog box in VS2008 SP1. The error was saying something like "Cannot add event handler because code element CMainDlg marked as read-only". Clearly neither .cpp nor .h file for this class was not marked as read-only. Actually none of files in directory were marked as read-only. I have tried fixing the proble with several tricks, but what finally worked for me is the following:
Exactly these steps fixed the problem for me. Now I believe it may be sufficient to only do steps#1 to step #5 to step#6. .aps file is most likely the root cause of the problem here. If anyone tries deleting .aps file only and it fixes the problem, please let me know in comments.
PingBack from http://www.easycoded.com/how-to-fix-cannot-add-event-handler-because-code-element-marked-as-read-only-in-vs2005-and-vs2008/
I met the same problem with you.
I use WTL, the case is as yours.
I did everything as you, but it does nothing, the problem is still..
Thanks dude! this worked for me!
Thanks dude! it worked for me..