Windows Universal Apps C ++ vs C #

5

What is the difference between C # and C ++ to develop universal apps?

I saw that in the templates from Visual Studio 2015 to C++ there is a Cross Plataform group with app templates for android and ios.

  • How does this work?

  • How can VC ++ compile for different devices?

  • The compiler used is VC ++ itself?

There are 4 questions in fact. :)

    
asked by anonymous 11.04.2016 / 15:23

2 answers

1

Basically, you can use C ++ / C # to create IOS, Android and Windows applications and use Shared project to share class library between platforms, it is a solution that builds several different binaries, one for each operating system.

To understand how it does this you have to understand how the compilation is, briefly you are transforming a strongly abstract code into a code closer to the machine language, however that generated object code is natively created for an operating system. Formerly the compiler only generated codes for the Windows operating system, now it can create different binaries for Android and IOS as well.

This last question did not find anything concrete, but it is very likely that he is using Xamarin technology to do.

More information: link

    
13.04.2016 / 07:41
0

At Xamarim University you get these answers. To generate code for IOS is used Xcode and for Android and Android Studio. VS automatically generates the binaries for each environment using the platform compiler. The chosen language can be c ++ or C #, however you will only get access to the usual controls. Any specific library will need to be created in a specific OS code.

    
27.06.2017 / 16:55