简体   繁体   中英

Windows Phone with C++

I want to make a Windows Phone app (version 7.5 and 8 preferably) in C++. I searched the net and came to know that for this purpose XAML is not supported and I will have to generate the UI from C++ itself, which I don't know how to. But in Windows Store apps, UI is generated by XAML and code-behind by C++/CX, which I find better. Is it possible to use C++/CX and XAML for the purpose or if you can give some resource on generating UI with C++?

Check out these links:

http://social.msdn.microsoft.com/Forums/en-US/wpdevelop/thread/98475feb-076f-434d-a5c8-24c8ccc4c9c0/

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681687%28v=vs.105%29.aspx

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681693%28v=vs.105%29.aspx

I would encourage you to:

  • Write your main project in C# (using XAML)

  • Invoke (native, unmanaged) C++ modules as needed (for performance)

And please remember that XAML itself isn't necessarily portable between platforms.

As far as I know there are libraries for C# and VB.net for Windows Phone. XAML is very easy to use so you will not lose anything to write some. Also you have to think if your app will pass certification. So better speak with the support team of windows phone to get some help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM