Sign in to follow this  
blueshogun96

Windows 10 and Cortana

Recommended Posts

Okay, so I'm porting my game to Windows Metro, because I believe it will be pretty well suited for it due to it's mechanics and minimalist art style.  And of course, I'd like to target Windows 10 and take advantage of some of it's exclusive features, such as Cortana.  Now, I've never actually used any APIs for Cortana before and I'm still rather new to writing apps for Windows Metro, but I think it would be a rather nifty feature to use in my game.  So far, every example I find is for Windows Phone 8, which is great in all because I'm supporting that too, but nothing in C++ so far.  Every example uses C#, and that's not the language my game uses.

 

So my question is (for those of you who are actively dev'ing with the Windows 10 preview), are the APIs basically the same between Windows Phone 8 and Windows 10?  And where can I find the APIs for C++?  All I can find is C# so far.

 

Thanks.

 

Shogun.

Share this post


Link to post
Share on other sites
"Modern" apps in Windows 8, and 10 all run under the "Windows Runtime" sometimes abbreviated as "WinRT" - not to be confused with the "Windows RT" that stands for the version of Windows 8 that runs on ARM.

.NET languages like C# and VB can compile down to WinRT code without changes, but for C++ most use a variant called C++/CX.

Once you have the nitty-gritty of C++/CX out of the way, you should be able to follow the C# examples, as the libraries, events, and other things are identical.

You could also look into using the Windows Runtime C++ Template Library (WRL) if you want to use fully ISO C++ code rather then relying on the /CX compiler extensions. (Note that this does not make your code any more or less portable, you're still tied to Windows and would need an abstraction layer over the OS parts if you were to port to, say, Mac or Linux) Edited by SmkViper

Share this post


Link to post
Share on other sites

Okay, that's more explanatory.  It's quite annoying that every example is in C#.  I guess it's best to hold off on the cortana stuff for now until I get the hang of coding for Windows Metro.

 

While I'm at it, how the heck do I include resource files in a Windows Metro app?

 

Shogun.

Share this post


Link to post
Share on other sites

Okay, that's more explanatory.  It's quite annoying that every example is in C#.  I guess it's best to hold off on the cortana stuff for now until I get the hang of coding for Windows Metro.
 
While I'm at it, how the heck do I include resource files in a Windows Metro app?
 
Shogun.


Depends on your definition of resource files. Modern apps do not have .rc files like Win32 programs, they use packages which the store understands which helps users only download resources that they need (for example, a French user doesn't need English assets).

Packaging your Windows Store DirectX game Edited by SmkViper

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this