Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on windows application i have two source of my project i want to merge that all so if i do so using add ecisting files then it giving me errors so any solution regarding this ?
Posted

Copy and Paste. Did you try that?
 
Share this answer
 
Comments
Hitul Mistry 30-Apr-12 11:31am    
Yes i have tried but in that i cannot create a object of that pages that are copy and pasted.
ZurdoDev 30-Apr-12 11:41am    
" i cannot create a object of that pages that are copy and pasted" You'll need to provide more information. This does not make any sense.
Sergey Alexandrovich Kryukov 30-Apr-12 18:24pm    
It could be conflicting names or, more likely, failure to compile due to unambiguous entry points.
Please see my answer with some extra information.
--SA
Sergey Alexandrovich Kryukov 30-Apr-12 18:24pm    
My 5.
--SA
Before merging them, think about another possibility: to leave them as separate assemblies. Reference one assembly by another (use the referenced assembly as a library) or reference both by a third assembly, an application or another library. This is easy and won't effect your work, won't introduce any additional hassles. The boundaries between assemblies are very transparent for Visual Studio, Debugger or any other tools.

If you want to merge the code, you can do it. If you have conflicting name(s), rename it (them) on one side before merging. First of all, remove onе of the entry points (usually this is a static Main method) — apparently, you cannot have two in one application.

—SA
 
Share this answer
 
v3
Comments
VJ Reddy 1-May-12 8:57am    
Good suggestion. 5!
Sergey Alexandrovich Kryukov 1-May-12 10:48am    
Thank you, VJ.
--SA
Espen Harlinn 7-May-12 17:11pm    
Good reply :-D
Sergey Alexandrovich Kryukov 7-May-12 17:37pm    
Thank you, Espen.
--SA

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