windows-runtime

Qt WinRT Folder Permission Issue

馋奶兔 提交于 2019-12-12 02:49:31
问题 Hi I already posted a question Qt WinRT App cannot access file permission denied regarding ffmpeg library and video file read, and now I think the entire project should have some permission to access/modify the files system in WinRt Qt App. Below is a simple code which create a directory if not exist, bu this also failing always, so I think it permission issue, and there are something should add on AppxManifest.xml. QString dirname = QDir::homePath()+"/test"; QDir dir(dirname); if(!dir.exists

XML-parsing in WinRT

▼魔方 西西 提交于 2019-12-12 02:45:02
问题 If I have a XML-document like this <Doc> <File> <ObjectID></ObjectID> </File> </Doc> And it sometimes can look like this <Doc> <Name /> <File> <ObjectID></ObjectID> </File> </Doc> How can I get the File -elements? They are not always on the same level, sometimes they can be on the root-level There could also be times, when it is placed multiple times in the Document (but then they are at the same level) UPDATE The <File> -element can also have <File> elements below, which should not be parsed

Where is sockaddr_in in Windows RT?

China☆狼群 提交于 2019-12-12 02:38:43
问题 According to MSDN (VS2012 version), sockaddr_in is defined in winsock2.h . There are no exceptions stated (similar to what we see with Windows Phone and some API calls). Yet when I try to compile a file which uses sockaddr_in and includes winsock2.h , I get a compile error (below). Notice that I don't receive a winsock2.h not found error (or similar). Also note that the same code compiles on Windows Phone 8. What does one need to include for WinRT? cl /Fotmp32dll\bss_conn.obj -Iinc32

WinRT Windows 10. Launch Website without opening metro app

ⅰ亾dé卋堺 提交于 2019-12-12 02:37:05
问题 I'm currently trying to write a code that utilizes Cortana's Speech Recognition. I want to create a command that launch website for e.g "Mark, Open google page" Mark is the AppName declared in the VCD. I'm currently using: Launcher.LaunchUriAsync(new Uri("https://google.com")); But the documentation for LauncUriAsync() states that "The calling app must be visible to the user when the API is invoked." Is there an equivalent API i can use that doesn't need the calling app to be visible? 来源:

Closing MessageDialog programatically in WP 8.1 RT

試著忘記壹切 提交于 2019-12-12 02:27:35
问题 I want to close and hide the MessageDialog in Windows Phone 8.1 RT. I've seen multiple solutions from calling .Cancel() and .Close() , but none work on Windows Phone 8.1 RT; they're valid only for Windows 8 RT. How can I close the MessageDialog from code without interacting with it? 回答1: Use ContentDialog instead MessageDialog . ContentDialog has more customization options. You can create ContentDialog which looks like MessageDialog without any problems, and hide it from code. Sample:

Windows Phone 8.1 - Daily Calendar and issue

柔情痞子 提交于 2019-12-12 02:09:09
问题 I was trying to make daily calendar and I create this: xaml: <Page x:Class="Calendar.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:Calendar" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid> <Pivot x:Name="CalendarPivot"

Is “Assigned Access” [Windows 8.1 feature] possible in Windows 8 app?

点点圈 提交于 2019-12-12 01:51:26
问题 I want to create an app which will be deployed on tablets as a kiosk in a mall. I searched around for creating app with some restriction like it will be always open, only authenticated uses can close with swipe gesture or Alt+F4. I got one solution but it's related to Win 8.1 and I can't wait till that. So what I want is the app will be always on. Normal users will use the app, they can't close it. App can be close by only authenticated users with password. Anybody have any ideas to do these

Will Windows Phone AppData change/Deleted if I update.aapx file with .xap in to the store

≡放荡痞女 提交于 2019-12-12 01:50:12
问题 I created an universal Windows Phone application using c# xaml that have user information in the appdata ' Local ' folder. And I published it in to store. But due to some performance issue I forced to move on to silverlight for updating the application. So I need to update package .appx file with .xap file. Is that possible ? Will it delete data from Local app folder of the current user ? 来源: https://stackoverflow.com/questions/29160224/will-windows-phone-appdata-change-deleted-if-i-update

Access to serial port for windows store apps

早过忘川 提交于 2019-12-12 01:44:42
问题 I am looking for a solution to send an escape sequence to a serial port in a windows store app. Maybe my understanding of windows store apps is wrong. I don't want to run this app on a windows RT device, but on a normal windows 8 PC. I know, that windows RT devices do only support very less communication with connected devices, but not serial ports. 回答1: Well, as I know it's not possible to do something like that by using WinRT library. It's sandboxed and you can't access lots of features