windows-store-apps

windows store certification kit - c++ library validation issues

℡╲_俬逩灬. 提交于 2019-12-10 23:29:05
问题 I'm trying to port a c++ library to universal windows for a windows store app. Using x86 developer command prompt in visual studio 2015 v14.0.24720.00 update 1 on Windows 10. Wondering what I'm doing wrong - everything compiles and links fine with the following flags: cl /nologo /FoBuild\Obj\Windows\Release\[OBJ_FILE].obj /c /MD /Ox /W4 /EHsc /FRBuild\Obj\Windows\Release\ -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE -D_CRT_SECURE_NO_WARNINGS -DDEFINE_WINDOWS_UNIVERSAL /AI "C:\Program Files (x86)

Databind a nullable type in XAML\Windows 8 store app

依然范特西╮ 提交于 2019-12-10 22:51:47
问题 I have a TextBox in XAML which I'm trying to databind to a nullable int. This is the code for my textbox and linked converter: <TextBox x:Name="textArea" InputScope="Number" Text="{Binding Area, Mode=TwoWay, Converter={StaticResource NullableValueConverter}}" /> public class NullableValueConverter:IValueConverter { public object Convert(object value, Type targetType, object parameter, string language) { return value; } public object ConvertBack(object value, Type targetType, object parameter,

Why doesn't new WSA Reflection API contain methods to get members with particular bindings?

偶尔善良 提交于 2019-12-10 22:03:45
问题 Consider properties for example. In old API I could call Type.GetProperties(BindingFlgas.Static | BindingFlags.Public); But with TypeInfo I have either DeclaredProperties or GetRuntimeProperties() which return PropertyInfo instances. But PropertyInfo does not contain IsStatic , IsPublic properties. To know this I first need to get Get or Set-method and check its properties. It is said that new reflection API is more sound in architecture and performance ways. But It's hard to believe in it.

Windows Store Bluetooth

痞子三分冷 提交于 2019-12-10 21:35:13
问题 I have been looking through the MSDN docs for Windows Store apps and the only thing I found that was close to Bluetooth was the Windows.Networking.Proximity. This appears to be a class whose use is only for close proximity ie within 3-4 centimeters. The app I am developing is on a HTML5/WinJS platform. Is there a BluetoothSocket class like there is for android? For those store developers who are not familiar with Bluetooth on android essentially you create a Bluetooth Device member variable

Is NFC necessary to use Peerfinder?

我是研究僧i 提交于 2019-12-10 21:21:16
问题 In a Windows Store application, I am attempting to use the PeerFinder class to locate the Bluetooth enabled devices around me, but I get an generic exception every time I call Peerfinder.FindAllPeersAsync(): One or more errors occurred while processing the request. (Exception from HRESULT: 0x80070306) I think the issue is what Peerfinder.SupportedDiscoveryTypes == PeerDiscoveryTypes.None, but I'm not sure why this is. My computer does not have an NFC radio, but it does have Bluetooth. I would

How can I accept “unsafe” HTTP response headers in a Windows Phone/Store app?

雨燕双飞 提交于 2019-12-10 20:57:15
问题 Recently, some code in a Windows Phone 8.1 Silverlight app that used HttpClient to access a 3rd-party REST API stopped working. I got the following error: A first chance exception of type 'System.Exception' occurred in mscorlib.ni.dll Additional information: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) After trying this in Windows Phone (Silverlight) and Store (RT) apps, I rewrote the same code in WPF and finally got a useful error message: The server committed a

Password hashing in Windows store app

╄→尐↘猪︶ㄣ 提交于 2019-12-10 20:16:07
问题 I am writing an authentication Service for my app. Clients will connect via HTTP to this Authentication service to register or connect. After they have connected, they will receive a sessionkey, that they can use the encrypt TCP / UDP packets send to a secondary server. That is still WIP so, just to give you a big-picture-overview. Serverside, i use BCrypt to hash the incoming password. and store that in a database. Serverside, I also use BCrypts Verify method to check any incoming password

What kind of ID goes into RequestProductPurchaseAsync?

一笑奈何 提交于 2019-12-10 19:41:35
问题 What's the meaning of the ProductID parameter of CurrentApp.RequestProductPurchaseAsync on Windows Phone 8, please? Is that the "Product identifier" that I provide when registering a product in the Dev Center on the Properties page? Or is it the GUID of the in-app product that the Store is using internally? The reason why I'm asking, some Store-related APIs do expect a GUID. My app only has one product; there's no selection process. I'd rather call RequestProductPurchaseAsync with a hard

Mocking in Windows store app

亡梦爱人 提交于 2019-12-10 19:23:01
问题 I'm not probably first who deals with mocking in windows store application for testing purpose. I would like to test my ViewModels and to use some of mocking frameworks to mock them. Of course, all of available (common) frameworks are not able to use in windows store application project. I have one idea how to solve it but I'm not sure that it is best solution. My solution consists of these projects. Main point is to divide presentation layer to two parts : Presentation - Windows store

Is there a way to store instances of own classes in the ApplicationSettings of a Windows Store app?

∥☆過路亽.° 提交于 2019-12-10 19:17:35
问题 In a Windows Store app I can only store WinRT types in the ApplicationSettings, according to the documentation. For roamed settings that should be held together I can use ApplicationDataCompositeValue. Trying to store an instance of an own class or struct results in an Exception with the message " WinRT information: Error trying to serialize the value to be written to the application data store. Additional Information: Data of this type is not supported". The term "trying to serialize"