UrK

I have a problem with VS2005 SP1 C++ project.

When trying to add new method to IDL interface of ATL project the following error is shown
Failed to return new Code Element. Possibly syntax error. New Element Name: abc
This worked previously on this machine. I could add new methods using wizard on other machine with the same VS but on some stage it stopped working too.
On one of the machines the method appears in class view after this error, so it cannot be added once again. Closing and reloading the project makes this method disappear.
Would be great to solve this, since the wizard saves a lot of dirty work here.
Thank you,


Re: Visual C++ General ATL-COM: Failed to return new Code Element...

Bite Qiu - MSFT

I know a similar issue has been fixed in SP1: http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=100182, So could you file a bug report in: http://connect.microsoft.com/VisualStudio with detail steps to reproduce this error

thanks

rico






Re: Visual C++ General ATL-COM: Failed to return new Code Element...

UrK

The problem is that I cannot reproduce this behaviour. New projects just work. My working project worked too and then just stopped.

No reproduction scenario- no bug. Sad





Re: Visual C++ General ATL-COM: Failed to return new Code Element...

Bite Qiu - MSFT

Is it a massive work to migrate your current project to another new created one I think it is not worth to go further on troubleshooting this problem if it is the only happens this time and the workaround is handy.




Re: Visual C++ General ATL-COM: Failed to return new Code Element...

UrK

Migrating the work to a new project and copying all the code solves the problem.
But... after a while the same issue appears again.