Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

Error using Event Wizard "...parent class code is read only"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John E Katich - 03 Jul 2005 18:19 GMT
When attempt to use the Event Wizard I get the following error message:

"Add/Remove of the function impossible, because the parent class code is
read only"

The Project was convert from VC 6.0.  The files in question do not have the
Read-Only Attribute on.

Any Ideas?
Rhett Gong [MSFT] - 04 Jul 2005 14:03 GMT
Hello John,
We have reviewed this issue and are currently researching on it. We will
update you ASAP. Thanks for your patience!

regards,
Rhett Gong [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties and confers no rights.
"Gary Chang[MSFT]" - 05 Jul 2005 10:27 GMT
Hi John

Based on my understanding, the problem is you could not use the event
wizard to add a event handler to your MFC class which is converted from the
VC6 program. Please let me know if I have misunderstood anything.

In order to isolate your problem, would you please give us some more
detailed information about this problem:

1. Have you used some source control system with this MFC project, such as
the Visual Source Safe with the VStudio?

2. Is it a project-dependent issue--I mean if you have another VC6 MFC
project and convert it to VC2003, does this problem occur?

3.Which class you this problem with, is it a MFC generic class(e.g.
CButton) or a custom MFC class you derived?

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
John E Katich - 07 Jul 2005 07:08 GMT
Hi Gary,

Your basic understanding is correct.

 1.. The project members are eventually saved in VSS.  However, I don't
feel this is part of the problem, since the problem does happen on a PC that
is connected to VSS .

 2.. I have not tried it on other projects, yet . See #3

 3.. The class that fails is:  cBaseFrame  derived from CFrameWnd  (class
cBaseFrame : public CFrameWnd)
   1.. I have been flipping back to VC 6.0 and using Class Wizard to insert
the Event Functions  framework (Menu Commands)
   2.. If I specify a class derived from CWnd it works.. all is well

Seems that a class derived from CframeWnd is the problem.

Hope this helps..

JEK

Hi John

Based on my understanding, the problem is you could not use the event
wizard to add a event handler to your MFC class which is converted from the
VC6 program. Please let me know if I have misunderstood anything.

In order to isolate your problem, would you please give us some more
detailed information about this problem:

1. Have you used some source control system with this MFC project, such as
the Visual Source Safe with the VStudio?

2. Is it a project-dependent issue--I mean if you have another VC6 MFC
project and convert it to VC2003, does this problem occur?

3.Which class you this problem with, is it a MFC generic class(e.g.
CButton) or a custom MFC class you derived?

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
"Gary Chang[MSFT]" - 08 Jul 2005 03:38 GMT
Hi John,

>1.. The project members are eventually saved in VSS.  However, I don't
>feel this is part of the problem, since the problem does happen on a PC that
>is connected to VSS.

Except the concern of the VSS, this problem could be caused by some related
solution files being corrupted. In such scenario, you can try to
delete(rename) your solution's .suo file and .ncb file, then reload the
solution in the VS2003 IDE, the .suo file and .ncb file will be regenerated
by the IDE.

If the above workaround does not work, maybe you need to test your project
in another machine in order to check whether this is a VS2003 IDE(machine)
specific issue or a code deficit issue. If your project is OK in another
test machine, then there may be some problems in the VS2003 of your current
working machine, I suggest you can do a VS2003 reparation to it.

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.