Click here to Skip to main content
15,889,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have an desktop application that is developed in VC++ MFC (VS2010) but now I am struggling in providing rich GUI. So now I am thinking of different options that I can use to provide rich UI so that I can reuse C++ code. I have other requirement such as application size shd as minimal as possible. So I have identified following options to develop rich UI with C++.

1) C++, WinRT, Javascript, HTML --> (VS2011 --> Required to develop)
This will help in providing rich UI but not sure whether installer would require .Net environment to be packaged with installer on WinXP so that it would help in identifying the final size of installer.

2) C++,XAML,WPF --> (VS2008 /VS2010 --> Can be used for development)
This will help in providing rich UI and also can be easily port on Win8. But not sure whether installer would require .Net environment to be packaged with installer on WinXP so that it would help in identifying the final size of installer.

3) Another option could be migrating VC++ MFC application totally in C# but that we require time since it depends on the number of screens in existing application.

Can someone suggest me which of these option is better so that I can resuse C++ code and application / installer size would be as minimal as possible on WinXp,Win7,Win8 OS.

Regds
Posted

1 solution

WinRT is windows 8 only, I thought. WPF will require .NET. I would think the best option is to turn your business logic in to a managed dll, so it can be called from C#, then to consume that in a C# WPF app. That way, you reuse the business logic, and you were rewriting the UI anyhow.
 
Share this answer
 
Comments
SNI 19-Jun-13 2:45am    
Thanks for your reply. So u mean to say applications developed in WinRT does not run on WinXP and Win7?
SNI 22-Jun-13 1:33am    
Can you pls elaborate more on creating managed dll. As per my understanding I need to create C++ managed dll and it then called from C#. If this understanding is correct?
SNI 19-Jun-13 6:52am    
I have 3rd party libs developed in VC++ (VS2005). but I dont want to migrat that in C#. What I can do is I can convert these libs in .dll (interop) and then I can use it in my C# application. But I am not able to understand creating managed dll for VC++ (business logic) and then use it in C#, WPF. Do you mean converting this unmanaged code to managed code? Can you pls elaborate more.
SNI 2-Jul-13 13:22pm    
I have converted my code C++ unmanaged code into managed dll and used in C#,WPF. I am not sure whether this code will work on Win7 and win 8 (32 and 6 bit) since I have some H/W communication with dongle and web camera & also 3rd party libraries developed in VC++. Can someone suggest me what problem that could arise with this architecture?

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