win-universal-app

Can't access USB device in Universal App

此生再无相见时 提交于 2020-01-17 05:39:07
问题 I have a USB device that I have successfully set to use the WinUSB driver, and it shows up on the Raspberry Pi 2 startup screen as a connected device. I have added it as a capability to the manifest: <Capabilities> <Capability Name="internetClient" /> <DeviceCapability Name="usb"> <Device Id="vidpid:1234 abcd"> <Function Type="classId:ff * *"/> </Device> </DeviceCapability> </Capabilities> Now I try to access it from my Universal App using the following code I found on MSDN: string aqs =

BackgroundUploader Sample does not work on Apache Server with PHP

谁说胖子不能爱 提交于 2020-01-17 03:55:57
问题 I have to upload a video file from an windows phone 8.1 app. I am using the BackgroundTrasfer sample but for the server side there is just a aspx script. But I need PHP. I have found this PHP script <?php $target = "upload/"; $target = $target . basename( $_FILES['Filename']['name']) ; $ok=1; if(move_uploaded_file($_FILES['Filename']['tmp_name'], $target)) { echo "The file ". basename( $_FILES['Filename']['name']). " has been uploaded"; } else { echo "Sorry, there was a problem uploading your

Using StreamSocketListener in the background with SocketActivityTrigger

拈花ヽ惹草 提交于 2020-01-16 09:57:14
问题 In order to make a UWP App act like an HTTP server, restup does the job. But the problem is that it does not provide an HTTP server that works even after the app is closed. In order to achieve this, a background task with SocketActivityTrigger has to be created and the socket ownership of StreamSocketListener has to be transferred to the socket broker so that the background task is triggered when a request comes (as explained here). And here is an example for an app that connects to a socket

Windows.UI.Popups.MessageDialog does not work for Windows 10 IoT

こ雲淡風輕ζ 提交于 2020-01-16 04:50:09
问题 await new Windows.UI.Popups.MessageDialog("Test").ShowAsync(); Has anyone else noticed this? Is there an easy work around ? 回答1: I have the some problem and I did't found any trick. I made myself a MessageDialog with a and It's not so hard to build it. Try do take a look this http://bitaware.altervista.org/messagedialog-for-iot/ The unique problem is that it do not work across platforms. If you would this behavior you have to get a condition string platform = AnalyticsInfo.VersionInfo

Implementing TeachingTip control for a UWP App

China☆狼群 提交于 2020-01-16 04:24:32
问题 To install the TeachingTip-control in my UWP app, I've done the following stepts: installed Microsoft.UI.Xaml package via Nuget in my project Added <XamlControlsResources xmlns = "using:Microsoft.UI.Xaml.Controls" /> into App.xaml . Imported Namespace xmlns:controls="using:Microsoft.UI.Xaml.Controls" I implemented the TeachingTip -control as follows: <Button x:Name="BackButton" Background="{x:Null}" Content="Back" Click="BackButton_Click"> <Button.Resources> <controls:TeachingTip x:Name=

ICMP in Windows 10 Universal Apps

荒凉一梦 提交于 2020-01-16 04:24:12
问题 I would like to be able to do some ICMP network diagnostics from a windows 10 universal app, including ping, traceroute, etc. However it would appear that the System.Net.NetworkInformation.Ping class isn't available to store apps and when creating a new System.Net.Sockets.Socket the ProtocolType.Icmp is not available when I try. All the information I can find on the Internet about this topic all relates to windows 8.1 apps and I want to know if anything new has been added to the API in

How to return value from nested task in c++/cx?

我与影子孤独终老i 提交于 2020-01-16 02:33:11
问题 I have a bunch of threaded tasks like this after each other: create_task(somewinrtasyncfunction()).then([this(variable_that_the_last_task_returned) { //task here return info; }).then([this](info) { //another task here return status}); Now I want to use status outside the tasks, in the function that called it. How would I access it? 回答1: You return the task (or value) created by create_task(...).then(...).then(...) . If you need to get the result synchronously, you can try calling .get() on

Read MS access database file (.mdb) in UWP

淺唱寂寞╮ 提交于 2020-01-15 12:10:39
问题 I am working on Universal Windows Application. I want to read ms access database file, But it seems like System.Data.Oledb namespace is not available in UWP. I don't want to use any Web Service which requires internet connectivity. Is there any solution for reading MS Access file in UWP? Thanks in advance. 回答1: There are no way to do it. Only one avaliable DB format is SQLite. You can use some converter tool By the way, soon would be available Entity Framework for SQLite databases (it is in

Read MS access database file (.mdb) in UWP

女生的网名这么多〃 提交于 2020-01-15 12:09:54
问题 I am working on Universal Windows Application. I want to read ms access database file, But it seems like System.Data.Oledb namespace is not available in UWP. I don't want to use any Web Service which requires internet connectivity. Is there any solution for reading MS Access file in UWP? Thanks in advance. 回答1: There are no way to do it. Only one avaliable DB format is SQLite. You can use some converter tool By the way, soon would be available Entity Framework for SQLite databases (it is in

How to upgrade db from windows phone 8 to windows phone 8.1

£可爱£侵袭症+ 提交于 2020-01-15 11:22:20
问题 I have read that SQL CE is not supported on 8.1 universal apps. I have an app published in market place using SQL CE. I want to make this app as universal app. How do I handle upgrade in such scenario? How do I upgrade SQL CE from silverlight app to SQL lite universal app?? Any ideas? 回答1: Currently I am saving the data into a file. Since the file will remain in the same format on 8.1. I read the file on 8.1, transform the data into my new model and save it in the new db schema. I am using