Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one project implemnted in vc++ 6.0 now I have to add one new module in it but as I am not familiar with vc++ 6.0(and also its old one) so I implement this module in vc++ 13 by implementing MCF project in vc++ in visual studio 2013. My task is almost done but now problem is I have to use this module in vc++ 6.0 project.
How can I do this? one option is to make dll but I don't know how to create it and use it vc++ 6.0 project.
Please help.
Posted
Updated 5-Jan-16 22:36pm
v2
Comments
Jochen Arndt 6-Jan-16 4:54am    
I don't think that this is possible when using MFC because VC6 and VS12 use different MFC versions. Even when it should be possible with some work, you might run into multiple problems.

When porting the old VC6 version is not an option, you should build the new module with VC6.
Kishor-KW 6-Jan-16 5:31am    
can it will be possible by creating dll and add it into old one?
Jochen Arndt 6-Jan-16 7:43am    
See Karsten's solution. But I would not do so because you may encounter problems later (maybe only on specific clients). It is always the best option to build all parts with one compiler and link to the same versions of runtime libraries.

1 solution

You port the old vc 6 project into vc++ 13, because as Jochen Arendt mentionted the different MFC versions arent compatible. It is even worse: it sometimes works and sometimes crashes. So avoid this mess.

It will have also a positive effect on this software because the compiler is better and shows some problems in the code.

An alternative is to make the vc 12 project static use of MFC and than make the different FREE of MFC stuff.

Tip from a seasoned MFC/Windows-programmer: if you have some older Visual Studio like 2001 (up to 2005?) they can open the vc6 projects and convert the solution for your vc 12.
 
Share this answer
 
Comments
Kishor-KW 6-Jan-16 7:22am    
I tried this but it gives errors.

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