winrt-component

Can I program a hold point into an Xbox game that waits for a user's cloud data sync to complete?

眉间皱痕 提交于 2020-12-15 06:19:27
问题 Is it possible to program a startup hold into an Xbox game package that waits for the user's cloud saves to sync before continuing? I have an HTML5 game package for which I require save data to be loaded from Xbox Live which is then read from local storage (in JSON format) to populate the load screen at startup, and I also have to account for any error messages for which the user may have to respond. The game itself is started up once sync is done (but obviously not until after the legal

Delphi - Making asynchronous calls to WinRT API using TTask.Future

丶灬走出姿态 提交于 2020-01-14 04:23:10
问题 Related to this question, I am trying to implement a procedure that uses the WinRT API to set the desktop wallpaper. To mimic the await functionality in C#, I am using TTask.Future (link) as outlined here and here. My implementation looks like this: class procedure TUtilityWin.SetWallpaper(AFileName: String); var lStorageFile: IStorageFile; liao_storagefile: IAsyncOperation_1__IStorageFile; lFutureTask: IFuture<IAsyncOperation_1__IStorageFile>; begin //WinRT Implementation if TUserProfile

How to use midlrt.exe to compile .idl to .winmd?

爷,独闯天下 提交于 2020-01-14 04:12:26
问题 Background: I need to build a Windows Runtime Component as part of a system that's set up to use CMake to generate its build system. As a preparatory step I'm trying to build it on the command line. Starting with a bare-bones .idl file (MyType.idl) namespace NS { [default_interface] runtimeclass MyType { } } I'm trying to generate a matching .winmd file using the midlrt.exe tool. The following command line (split across several lines for readability) midlrt /metadata_dir "%WindowsSdkDir

Windows 8 XAML possible bug - using images causes text controls to disappear

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 12:42:38
问题 I have a strange problem happening intermittently with my apps where textbox controls would disappear intermittently. I have narrowed the cause of this down to having image files (small logos etc) on my page. I have managed to create a simple project which contains an xaml page with an image and 2 textblocks (these are in grids). I have found on two test tablets that I can re-create the problem by going to task manager and creating a dump file for the running app. After I do this twice and

Windows 8 XAML possible bug - using images causes text controls to disappear

◇◆丶佛笑我妖孽 提交于 2019-12-25 12:42:10
问题 I have a strange problem happening intermittently with my apps where textbox controls would disappear intermittently. I have narrowed the cause of this down to having image files (small logos etc) on my page. I have managed to create a simple project which contains an xaml page with an image and 2 textblocks (these are in grids). I have found on two test tablets that I can re-create the problem by going to task manager and creating a dump file for the running app. After I do this twice and

Windows 8 compatible camera implementation

时间秒杀一切 提交于 2019-12-25 04:09:14
问题 I have an existing applicaton in winforms. It is using third party library (Touchless.Dll and WebCam.lib) to enable image capturing functionality. Now i want to make it compatible with Windows 8.1 tablets. When i tried to apply WinRT API in winform i got an error an error related manifest. Error 1 The "ResolveManifestFiles" task failed unexpectedly. System.ArgumentException: Value does not fall within the expected range. at Microsoft.Build.Tasks.Deployment.ManifestUtilities.NativeMethods

Does protobuf-csharp-port support Windows RT?

送分小仙女□ 提交于 2019-12-24 12:34:02
问题 protobuf-csharp-port homepage(with sourcecode) In my previous windows phone silverlight 8.0 project I used protobuf-csharp-port to implement the GPB, but now I want to port the project to windows 8.1 and then universal ,so I copy the source code to create a windows runtime component(I am a library developper),but encounter some problems: sounds like the Serializable Attribute is not useful any more So question is: Why the red font?Does protobuf-csharp-port support Windows RT? If not,How can I

Accessing UI thread from Windows Runtime Component throws exception only on Mobile

[亡魂溺海] 提交于 2019-12-13 02:56:43
问题 I have the following problem. I am using a simple Windows Runtime Component to communicate between the application and a WebView . I am doing this according to documentation This is the code for the Windows Runtime Component public delegate void NotifyAppHandler( string str ); [AllowForWeb] public sealed class WebViewInjectionObject { public event NotifyAppHandler OnNotifyApp; public void NotifyApp( string str ) { OnNotifyApp?.Invoke( str ); } } In the OnNavigatedTo method I initialize the

How to free memory of c++ WinRT value structs

我怕爱的太早我们不能终老 提交于 2019-12-12 13:17:19
问题 Do I have to, and how do I, free memory from a value struct created in a Windows Runtime Component that has been returned to a managed C# project? I declared the struct // Custom struct public value struct PlayerData { Platform::String^ Name; int Number; double ScoringAverage; }; like auto playerdata = PlayerData(); playerdata.Name = ref new String("Bla"); return playerdata; I'm new with freeing memory and haven't got a clue how and when to free this. Anyone? 回答1: When a value struct is

Toast notification & Geofence Windows Phone 8.1

社会主义新天地 提交于 2019-12-10 07:50:03
问题 I'm facing a strange problem with my Windows Phone 8.1 App. The App will send a toast notification every time the user is near a Point of his interest using Geofence Quickstart: Setting up a geofence and BackgroundTask Quickstart: Listening for geofence events in the background And this is the Background task (example) public void Run(IBackgroundTaskInstance taskInstance) { // Get the information of the geofence(s) that have been hit var reports = GeofenceMonitor.Current.ReadReports(); var