For Programmers: Free Programming Magazines  


Home > Archive > Visual Studio > November 2005 > Read-Only Code problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Read-Only Code problem
Roger Garrett

2005-11-14, 9:57 pm

I'm developing an application with a lot of dialogs. One of the dialogs
(which I created a long time ago and have modified a lot during development)
I am having a problem with within the IDE. I bring up the dialog in the
resource editor and double-click on any of the controls on the dialog. That
normally brings up the related source code for the control, such as its
OnButtonClick method. But now when I double click on any control a message
dialog apears that says:

Add/remove of the function is impossible,
because the parent class code is read only.

I've never seen that before. I can edit and save the source code (both the
..h and the .cpp files) just fine when I edit them directly, and examining the
properties of the actual files shows that they are not read-only. So, what's
up? What can I do to convince the IDE that the code is not read-only?

I've tried shutting down and starting up again, with no luck.

Any suggestions?

- Roger Garrett

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com