windows-store-apps

Can't load WinRT Component unless I reference the project

*爱你&永不变心* 提交于 2019-12-31 22:42:10
问题 I'm running into an odd problem. I created a Windows Runtime Component (for Windows Store) that makes some legacy C/C++ code available to .NET via some C# wrapper classes. I wrote a test harness Store App (hereafter referred to as "test1") that references the WRC project (both projects in the same solution). It calls into the component and everything works fine. Next I take the following output files from the WRC project: MyWrtComponent.dll MyWrtComponent.exp MyWrtComponent.pdb MyWrtComponent

Random numbers for Windows Phone 8 and Windows Store 8?

时光怂恿深爱的人放手 提交于 2019-12-31 07:04:21
问题 I'm struggling with a port of a couple of security libraries to the Windows Phone 8 and Windows Store 8 platform. I need a function which provides random numbers. Win32 has CryptGenRandom and even RtlGenRandom . Windows Store 10 and Universal Windows has BCryptGenRandom . However, there's a hole for Windows Phone 8 and Windows Store 8 because CryptoAPI is not available, and CNG is only available on Windows 10 and Universal Windows. The MSDN docs say BCryptGenRandom is available for "Windows

Random numbers for Windows Phone 8 and Windows Store 8?

☆樱花仙子☆ 提交于 2019-12-31 07:04:20
问题 I'm struggling with a port of a couple of security libraries to the Windows Phone 8 and Windows Store 8 platform. I need a function which provides random numbers. Win32 has CryptGenRandom and even RtlGenRandom . Windows Store 10 and Universal Windows has BCryptGenRandom . However, there's a hole for Windows Phone 8 and Windows Store 8 because CryptoAPI is not available, and CNG is only available on Windows 10 and Universal Windows. The MSDN docs say BCryptGenRandom is available for "Windows

Desktop App Converter -PackageName E_MANIFEST_USE_DEFAULT_VALUE_FAILED

混江龙づ霸主 提交于 2019-12-31 06:51:15
问题 I am trying to convert my app to an appx using Desktop App Converter. I am trying to use my Package/Identity/Name from the Microsoft store dashboard in the form of -PackageName "1234Myapp.Andthistoo". Desktop App Converter will not take it.It keeps coming back with a write error. From my searches I have been under the impression that the -PackageName category can not start with a number and it can not contain a period which my Package/Identity/Name contains both. It fails with this message:

Windows Store Apps: my app terminates after being switched

我们两清 提交于 2019-12-31 05:48:07
问题 I'm building a Windows 8 app. My problem is when the user switches to another app or goes to start, the app terminates. In the side bar I find the preview of the app to be displaying the splash screen, when I click on the app it starts from the beginning. What can be the problem here, could it be a memory issue ? In the task manager my app takes 40 MB of memory, is that too much ? EDIT The Event Viewer shows the following when the app crashes: Application: MyApp.exe Framework Version: v4.0

Rendering not working with MediaElement windows RT

会有一股神秘感。 提交于 2019-12-31 05:17:12
问题 I need to take thumbnail from Video playing with MediaElement For this i learn there is RenderTargetBitmap in windows 8.1 API RenderTargetBitmap a = new RenderTargetBitmap(); await a.RenderAsync(myMedia); thumb.Source = a; and second way i got with help of WinRTXamlToolkit.Composition toolkit which do rendring with WriteableBitmapRenderExtensions class WriteableBitmap w = await WriteableBitmapRenderExtensions.Render(myMedia); thumb.Source = w; Both these methods are working with all UIElement

UnauthorizedAccessException during storageFolder.CreateFileAsync

瘦欲@ 提交于 2019-12-31 05:14:09
问题 I have the following piece of code // Point to c:\users\yancheng\documents\visual studio 2012\Projects\App5\App5\bin\x86\Debug\AppX StorageFolder storageFolder = Windows.ApplicationModel.Package.Current.InstalledLocation; StorageFile file = await storageFolder.CreateFileAsync("1000.txt"); if (file != null) { using (IRandomAccessStream writeStream = await file.OpenAsync(FileAccessMode.ReadWrite)) { using (DataWriter dataWriter = new DataWriter(writeStream)) { dataWriter.WriteInt32(1000); } } }

Windows 8 Store Application Support for x:TypeArguments

天大地大妈咪最大 提交于 2019-12-31 05:01:31
问题 I'd like to know the same thing as this: Silverlight 4 Support for x:TypeArguments ... but for Windows 8 Store Apps. Why is x:TypeArguments available if it doesnt work? Or am I missing something? The MainPage.i.g.cs file is auto-generated with a non-generic base class even though x:TypeArguments is defined in the XAML - so of course it doesn't compile. I can get it working with the proposed work-around of having a "typedef" base class which specifies the generic type, but this feels pretty

Windows 8 Store Application Support for x:TypeArguments

心已入冬 提交于 2019-12-31 05:01:29
问题 I'd like to know the same thing as this: Silverlight 4 Support for x:TypeArguments ... but for Windows 8 Store Apps. Why is x:TypeArguments available if it doesnt work? Or am I missing something? The MainPage.i.g.cs file is auto-generated with a non-generic base class even though x:TypeArguments is defined in the XAML - so of course it doesn't compile. I can get it working with the proposed work-around of having a "typedef" base class which specifies the generic type, but this feels pretty

Sending an email in metro application?

泪湿孤枕 提交于 2019-12-31 03:52:47
问题 I want to send an email with some content as a body in my metro app :- 1)since system.net.mail is not supported in metro application i have decided to use this :- using Windows.System; //starts the default mail app with a subject, cc, bcc, and body Launcher.LaunchUriAsync(new Uri("mailto:windows8devs@almostbeta.com?subject=Code Request&cc=kevin@almostbeta.com&bcc=admin@almostbeta.com&body=Hi!")); but my doubt is that i want to generate a content as a body to this email , but this content is