C ++和XAML或C ++,WinRT,Javascript和HTML [英] C++ and XAML or C++,WinRT,Javascript and HTML

查看:81
本文介绍了C ++和XAML或C ++,WinRT,Javascript和HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个用VC ++ MFC(VS2010)开发的桌面应用程序,但现在我在努力提供丰富的GUI。所以现在我正在考虑使用不同的选项来提供丰富的UI,以便我可以重用C ++代码。我有其他要求,如应用程序大小shd尽可能少。因此,我已经确定了使用C ++开发丰富UI的以下选项。



1)C ++,WinRT,Javascript,HTML - > (VS2011 - >需要开发)

这将有助于提供丰富的UI,但不确定安装程序是否需要.Net环境与WinXP上的安装程序打包,以便它有助​​于识别安装程序的最终大小。



2)C ++,XAML,WPF - > (VS2008 / VS2010 - >可以用于开发)

这将有助于提供丰富的UI,也可以轻松地在Win8上移植。但不确定安装程序是否需要.Net环境与WinXP上的安装程序一起打包,以便有助于确定安装程序的最终大小。



3)另一种选择可能是在C#中完全迁移VC ++ MFC应用程序,但我们需要时间,因为它取决于现有应用程序中的屏幕数量。



有人可以告诉我这些选项中的哪一个更好,以便我可以重新使用C ++代码,应用程序/安装程序的大小将尽可能小的WinXp,Win7,Win8操作系统。



Regds

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

推荐答案

WinRT只是Windows 8,我想。 WPF将需要.NET。我认为最好的选择是将业务逻辑转换为托管dll,因此可以从C#调用它,然后在C#WPF应用程序中使用它。这样,你重用业务逻辑,无论如何你都在重写UI。
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.


这篇关于C ++和XAML或C ++,WinRT,Javascript和HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆