473,574 Members | 3,202 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1630
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.m icrosoft.com> wrote in message
news:XK******** ******@TK2MSFTN GXA01.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.m icrosoft.com> wrote in message
news:XK******** ******@TK2MSFTN GXA01.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
21902
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 until it gets to around 1500 to 1800 messages. At that time, I get a SocketException with the message "Only one usage of each socket address (protocol/network address/port) is normally permitted". This...
0
1251
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 read only" The Project was convert from VC 6.0. The files in question do not have the Read-Only Attribute on. Any Ideas?
1
2104
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 click SqlDataAdapter1 to preview the data. When F5 to run it, I get this error "Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection..." Here is my code (they...
18
28726
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 g.DrawString("Test", New Font("Arial", 12, FontStyle.Bold), Brushes.Black, 0, 0) Why is this? Marc
0
2212
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. (I also install Jet 8 as a follow-on action at the end of the installation.) I can install the application on my development PC and on a "bare" PC. Regardless of the PC where I install, in the...
0
3410
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 button it does a click event. In this click event I will do some database updates, then I will use reflection to call a method in the parent (this.page) to load the new user control. Its at this...
10
18872
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"--> <!-- #include virtual="/includes/file2.asp" --> <!-- #include virtual="/includes/file3.asp" --> <!-- #include virtual="/includes/file4.asp" --> <!-- #include virtual="/includes/file5.asp" -->
3
2874
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 specific design data are loaded from a database in step 1 of the wizard and saved into a session variable. In step 2, when the user clicks on a button, I load the design data from the session...
7
3101
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 help any suggestion? I got the following errors: vector_main.obj : error LNK2019: unresolved external symbol "public: __thiscall Vector<int>::~Vector<int>(void)" (??1?$Vector@H@@QAE@XZ)...
0
8111
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7863
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8140
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5336
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3776
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2282
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1375
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1102
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.