Click here to Skip to main content
15,886,629 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am trying to add an event in my existing ATL project , when i try to Add connection point. It Gives me an error

"Error in OnFinish. Failed to return new Code Element. Possibly syntax error. New Element "".

Can anybody help me?

I tried This after deleting .ncb and .clw file. As this is the existing project i do not have any information how it is created. Please Help me
Posted
Comments
Jochen Arndt 20-Nov-15 5:07am    
Have you tried a "Rebuild all"?
Member 12154882 20-Nov-15 6:53am    
Yes I have tried But no success.. I want to add an event in existing project and this project was made in VC 6.
Jochen Arndt 20-Nov-15 7:00am    
That is an important information. Then you might have other problems too. Porting VC6 applications to recent VS versions can be a pain.

I suggest to port the application first to VS 2010 before adding anything new.
Member 12154882 20-Nov-15 7:20am    
The project is already migrated to VS 2010 and we are using the Com.dll effectively built in VS 2010, but we need to add few new methods and event in the existing project, where we are not able to get success.
Jochen Arndt 20-Nov-15 7:46am    
It is difficult to solve this without seeing the project.

I have one last tip:
Check the resource.h file. Ensure especially that the next default values for new objects (should be at the end) may not result in generating existing IDs. If necessary edit the file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900