Hi, I have a VS2005 VC++ application which no longer allows me to add a
Variable or Function to a class in the project. I attempt to add a new
(public) Variable called Temp123, and get this error...
Failed to return new Code Element. Possibley syntax error. New Element
Name. Temp123
I recently changed the name of the cpp file (using Solution Explorer) of
this class. Since that change, the error always occurs. I attempted to
change the cpp name back to its original name, but still get the error.
Can anyone help me out.
RML 6 3752
Hi RML
"RML" <RM*@discussions.microsoft.com> wrote in message
news:0F**********************************@microsof t.com... Hi, I have a VS2005 VC++ application which no longer allows me to add a Variable or Function to a class in the project. I attempt to add a new (public) Variable called Temp123, and get this error...
Failed to return new Code Element. Possibley syntax error. New Element Name. Temp123
I recently changed the name of the cpp file (using Solution Explorer) of this class. Since that change, the error always occurs. I attempted to change the cpp name back to its original name, but still get the error.
Can anyone help me out.
RML
Does this problem still exist if you add a new cpp file with the name you
want and copy the whole contents of the old file to the new one and remove
the old one from the solution?
Marcus
Hi Marcus, I tried your suggestion, but still have the same problem.
RML
"Marcus Heege" wrote: Hi RML
"RML" <RM*@discussions.microsoft.com> wrote in message news:0F**********************************@microsof t.com... Hi, I have a VS2005 VC++ application which no longer allows me to add a Variable or Function to a class in the project. I attempt to add a new (public) Variable called Temp123, and get this error...
Failed to return new Code Element. Possibley syntax error. New Element Name. Temp123
I recently changed the name of the cpp file (using Solution Explorer) of this class. Since that change, the error always occurs. I attempted to change the cpp name back to its original name, but still get the error.
Can anyone help me out.
RML
Does this problem still exist if you add a new cpp file with the name you want and copy the whole contents of the old file to the new one and remove the old one from the solution?
Marcus
Hi RML
"RML" <RM*@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com... Hi Marcus, I tried your suggestion, but still have the same problem.
RML
"Marcus Heege" wrote:
Hi RML
"RML" <RM*@discussions.microsoft.com> wrote in message news:0F**********************************@microsof t.com... > Hi, I have a VS2005 VC++ application which no longer allows me to add a > Variable or Function to a class in the project. I attempt to add a new > (public) Variable called Temp123, and get this error... > > Failed to return new Code Element. Possibley syntax error. New > Element > Name. Temp123 > > I recently changed the name of the cpp file (using Solution Explorer) > of > this class. Since that change, the error always occurs. I attempted > to > change the cpp name back to its original name, but still get the error. > > Can anyone help me out. > > RML
Does this problem still exist if you add a new cpp file with the name you want and copy the whole contents of the old file to the new one and remove the old one from the solution?
Marcus
Next attempt: Close the poject, delete the .ncb file and reopen the project.
Tried that, and it did not work.
RML
"Marcus Heege" wrote: Hi RML "RML" <RM*@discussions.microsoft.com> wrote in message news:DA**********************************@microsof t.com... Hi Marcus, I tried your suggestion, but still have the same problem.
RML
"Marcus Heege" wrote:
Hi RML
"RML" <RM*@discussions.microsoft.com> wrote in message news:0F**********************************@microsof t.com... > Hi, I have a VS2005 VC++ application which no longer allows me to add a > Variable or Function to a class in the project. I attempt to add a new > (public) Variable called Temp123, and get this error... > > Failed to return new Code Element. Possibley syntax error. New > Element > Name. Temp123 > > I recently changed the name of the cpp file (using Solution Explorer) > of > this class. Since that change, the error always occurs. I attempted > to > change the cpp name back to its original name, but still get the error. > > Can anyone help me out. > > RML
Does this problem still exist if you add a new cpp file with the name you want and copy the whole contents of the old file to the new one and remove the old one from the solution?
Marcus
Next attempt: Close the poject, delete the .ncb file and reopen the project.
"RML" <RM*@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com... Tried that, and it did not work.
RML
In this case, it seems to be somehow realted to your file itself. To find
the source, I would comment out the whole body of the class and see if it is
possilbe to add a new function to the empty class. If yes, uncomment more
and more parts until the problem reappears.
If you have found the reason, please share it here.
I don't see anything better to do here, sorry
Marcus
Here is what I did to get it to work.
I created a new class. I cut & pasted the code from the original classes .h
& .cpp files into the respective .h & .cpp files of the new class. In the
new class files, I then replace the old class name with the new, then I
deleted the original class files.
It was a round about way, but it worked.
RML
"Marcus Heege" wrote: "RML" <RM*@discussions.microsoft.com> wrote in message news:83**********************************@microsof t.com... Tried that, and it did not work.
RML
In this case, it seems to be somehow realted to your file itself. To find the source, I would comment out the whole body of the class and see if it is possilbe to add a new function to the empty class. If yes, uncomment more and more parts until the problem reappears. If you have found the reason, please share it here.
I don't see anything better to do here, sorry
Marcus This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Devin |
last post by:
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
...
|
by: mo |
last post by:
The code I've pasted below is taken directly from Microsoft's site at
http://support.microsoft.com/default.aspx?scid=kb;EN-US;308157
As far as I can tell the error is raised on this line:
conn...
|
by: Tim D |
last post by:
Hi,
I originally posted this as a reply to a rather old thread in
dotnet.framework.general and didn't get any response. I thought it might be
more relevant here; anyone got any ideas? My...
|
by: Thomas D. |
last post by:
Hello all,
I'm using the IXmlSerializable interface for a project and encounter some
problems when testing my webservice in a client application. I know this
interface is undocumented and not...
|
by: MSDNAndi |
last post by:
Hi,
I have a set of simple webservices calls that worked fine using .NET
Framework 1.0.
I am calling a Java/Apache based webservices, the calling side is not able
to supply a proper WSDL.
...
|
by: weston |
last post by:
I've got a piece of code where, for all the world, it looks like this
fails in IE 6:
hometab = document.getElementById('hometab');
but this succeeds:
hometabemt =...
|
by: louis_la_brocante |
last post by:
Dear all,
I am having trouble generating a client proxy for a webservice whose
methods return a "complex" type. The type is complex in that it is a
class whose members are a mix of primitive...
|
by: vcuser |
last post by:
All,
Can someone please let me know if you have come across this error in VC 7.1 when trying to implement an interface using the "Implement Interface wizard"?
If so, can you please let me know...
|
by: Rex the Strange |
last post by:
Hi All,
Help please! I have a formview on my page and I've created an update
command of the form:
"update set valuex=@valuex, valuey=@valuey where
valuez=@valuez"
which I can get to...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |