Windows Phone 8 touch positions in Direct3D - c++

I can't seem to find any documentation on how to handle touches in a purely native C++ Direct3D application in Windows Phone 8. Has anybody managed to get touch input in to their game? Everything I read online is either related to XAML/Silverlight or desktop metro apps. i have been told by many people at Microsoft that this feature is supported so i know that it can be done

I think at some level your C++ Direct3D app on Windows Phone 8 (or Windows 8) will be using CoreWindow.
CoreWindow has pointer events:
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.core.corewindow.pointerpressed.aspx?cs-save-lang=1&cs-lang=cpp#code-snippet-1
Which are available from C++ as well.

Related

WP8.1 Certification - 6.5.1 - Initial launch functionality using XAML/C++

Prior to WP8.1, we've used C#/XAML along with C++ interop project. With WP8.1, we've decided to migrate to the universal apps and support Windows 8.
One of the things we're wondering if it's possible to check if the user has background music playing. This was an issue with our first games on WP7 and WP8.
You can read more about the certification here: http://msdn.microsoft.com/library/windows/apps/hh184838(v=vs.105).aspx
With C# and WP8 we used to be able to simply check Microsoft.Xna.Framework.Media.MediaPlayer.GameHasControl. Is there anything similar with C++/XAML DirectX app on WP8.1 or do we simply skip the 6.5.1 requirement?
In Windows Phone 8.1 Runtime you have a BackgroundPlayer class, it has a property BackgroundMediaPlayer.IsMediaPlaying, which you can use for checking for background music playing.
Note that this is only for Windows Phone, so for other devices you will have to use other methods.

C++ windows phone 8 components

I'm new to windows phone development, and I need to create a control with C++ (basically it's a WebBrowser control) I would create with C# but the library I need to use for core is written in C++.
Conclusion: So the question is, Can I develop a control in C++ using external libraries and then compile it to use with any language of the CLR and use it in my windows phone 8 applications? If does, let me know about some resource any video, book, or whatever.
The general answer is "yes", although it comes with some caveats.
It's certainly possible to build a component in C++ using the Windows Phone Runtime APIs and then utilize it from another programming language, such as C#. The more "pure" the C++ code is in that it doesn't access native operating system features (that may not be present), the better off you'll be.
There's some general guidance on MSDN:
Native code for Windows Phone 8
Windows Phone Runtime API
Using Native C++ code in your Apps
That being said, if you're attempting to create an entirely new web browser for some reason, I'd strongly suggest you consider using the built in WebBrowser component. In Windows Phone 8, it's based on IE10, and in Windows Phone 8.1, it's IE 11. Those are both very capable browsers and designed to work well within the memory constraints of the platform.

Is it possible window phone app create in Visual C++ using vs 2012 ultimate?

shown in image and let me know which option to create window phone app visual c++
You can't do that. There is no adequate option to create regular Windows Phone app only in c++. If you'll create Direct3D app with XAML - all interface will be in c# with Direct 3D view in Direct 3D with c++. If you'll create Direct 3D native only - you'll need to create all interface by hands. There are a lot documentation pages.
Native code on Windows Phone 8,
C++ support from Windows Phone 8,
And right here, at SO -> Is it possible to program for Windows Phone 7 in standard C++ only? (with answer about Windows Phone 8)
There is no pure C++ template for Windows Phone, only project templates for game development are supported. This is due to the XAML architecture differences between Windows 8 and Windows Phone 8. While the former uses WinRT controls for XAML thus enabling projections for C++, Windows Phone 8 XAML is still the Silverlight runtime which is not projected into C++ and is based on CLR.

Native C++ and Windows Tablets

I have a service application (no frontend) that was converted from C# to CPP native code not implementing .net framework. This was done to speed the processing and to reduce the footprint.
I am investigating the move to support this service to Window tablet devices. How would I go about this and what obstacles might I meet along the way?
TIA
You shouldn't expect troubles, even Windows Phone 8 will introduce full support for the C++, there is no relevant news that can make you worried about Windows 8 and C++, the only relevant thing is the addition of the WinRT to the usual set of C++ libraries for Windows but is more like an extensions rather than a set of libraries that will suppress something that is already existing in the Microsoft environment.
The only real changes are in the GUI subsystem, as you can expect just looking at the Windows 8 products and in this case under Windows 8, if you want a GUI, you probably do not have other options than switch to the new WinRT.
There is also this link that can be useful.

Windows 7 GUI reference

I maintain a large C++ application using Win32 and i want to use some of the new controls introduced in Vista/Windows 7 (New ballon help, command links, status bar notofications.
I have downloaded the Windows User Experience Interaction Guidelines, but i dont find a corresponding API Reference. I know that some of these controls will be not available from core Win32 - so i am looking as well for some source about which controls need which API (WPF or whatever).
Any Links?
The Windows 7 SDK site has a number of downloads and guidance pages which should help point you in the right direction: http://msdn.microsoft.com/en-us/windows/bb980924.aspx
The taskbar/notification API is further documented here: http://msdn.microsoft.com/en-us/library/dd378460(VS.85).aspx
Following Wolfs link and browsing for quite a while, i came up with the following entry point (on microsoft.com), that looks quite valuable to me:
Windows User Interface
and more specifically:
Windows Controls
As far as i can see there is nothing that can NOT be done using core Win32.