472,328 Members | 1,108 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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

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?
Nov 17 '05 #1
8 1550
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...sdn/nospam.asp
&SD=msdn

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

Nov 17 '05 #2
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...sdn/nospam.asp
&SD=msdn

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

Nov 17 '05 #3
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...sdn/nospam.asp
&SD=msdn

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

Nov 17 '05 #4
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...sdn/nospam.asp
&SD=msdn

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

Nov 17 '05 #5


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

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:XK**************@TK2MSFTNGXA01.phx.gbl...
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...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 17 '05 #6


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

""Gary Chang[MSFT]"" <v-******@online.microsoft.com> wrote in message
news:XK**************@TK2MSFTNGXA01.phx.gbl...
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...sdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 17 '05 #7
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 thatis 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...sdn/nospam.asp
&SD=msdn

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

Nov 17 '05 #8
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 thatis 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...sdn/nospam.asp
&SD=msdn

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

Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Grant Richard | last post by:
Using the TcpListener and TcpClient I created a program that just sends and receives a short string - over and over again. The program is fine...
0
by: John E Katich | last post by:
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...
1
by: fl | last post by:
I am running ASPNET on my local machine. I have a problem when I try to connect to a SQL server database table. The data looks good when I right...
18
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics...
0
by: Michael Fay in SB | last post by:
A month ago I posted: "I built my application with Access 2003 and made a distribution using the Microsoft Office Access 2003 Developer Extensions....
0
by: davidr | last post by:
Hi, I have a panel that I load user Control in no problem. The problem arrises when I do a post back on one of these user controls. I have...
10
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!--...
3
by: Michel Couche | last post by:
Hello, I have an ASP.Net application that uses the Wizard control to build a newsletter. There are three steps in the wizard. The customer's...
7
by: JustBeSimple | last post by:
Hi Everyone, I'm having a problem compiling useing the VS2005 .NET I need help to resolve those error, I try to create a new project it doesn't...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.