windows-8

Powershell runtime

醉酒当歌 提交于 2019-12-20 01:49:30
问题 I'm running VS 2010 under Windows 8. After installing NuGet, and running Package manager console I get the following message: Error: The Package Manager Console requires PowerShell 2.0 runtime, which is not detected on this machine. Please install the PowerShell 2.0 from http://support.microsoft.com/kb/968929 and restart Visual Studio. I know that PowerShell 3.0 is installed automatically along with Windows 8. Why would this error message pop up? 回答1: While the Windows Powershell 2.0 Engine

Embedded database for windows 8 app [closed]

寵の児 提交于 2019-12-19 17:52:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Is there any kind of embed-able database for windows 8 app development? I was looking for something like Sqlite or etc which integrate with visual studio 11. 回答1: For JavaScript, you're probably best off just using HTML5 IndexedDB. Unfortunately, that is not directly available to other languages. There is a

Unable to Start Debugging. visual studio 2012 prompt after one time debug

半世苍凉 提交于 2019-12-19 12:24:32
问题 I am getting this error " Unable to Start Debugging " in visual studio 2012. I have also update the remote debugging sp2. also uninstalled and reinstalled vs2012 and added sp. still facing the same issue. My operating system is windows-8 64 bit. Also tried to run in Administrator user still the same. Unable to Start Debugging. visual studio 2012 回答1: Save your work, close Visual Studio then reopen your project 回答2: I had the same problem in my Visual Studio 2013. The solution I found is easy.

Using a C++ Library (built using Visual C++ 2010) in a Windows 8 Store app (built using Visual C++ 2012)

元气小坏坏 提交于 2019-12-19 11:52:06
问题 I have a C++ library built using VC++ 2010. I have the headers, import libs and DLLs for this library. I want to use this library in my Windows 8 Store app that I am trying to build using VC++ 2012. My app works fine on my local machine but when I try to run this app on a remote Windows 8 device, the app fails to load. What am I doing wrong? 回答1: You cannot use C++ binaries built using older version of Visual Studio (older than Visual Studio 2012) in your Windows 8 Store apps. The reason for

Load a Page into a ContentControl

风流意气都作罢 提交于 2019-12-19 11:38:30
问题 I have a ContentControl where I want to load the page myPage2 . My XAML Codefrom this page looks like this: <Page x:Class="ExampleApp.myPage2"> <Grid x:Name="Content" Height="651" Width="941" Background="White"> ... ... </Grid> </Page> I know that I can load a resource from a page with this Code: protected override DataTemplate SelectTemplateCore(object item, DependencyObject container) { var contentControl = (ContentControl)container; return (DataTemplate) contentControl.Resources

Any sample on how to use WCF RIA Services in XAML metro app?

雨燕双飞 提交于 2019-12-19 11:38:23
问题 I wonder if someone have tried using WCF RIA Services in XAML based metro application. If you have any blog or sample please share. 回答1: As a matter of fact I did and here's the trick :) I added a " Service Reference " to my WCF service exposing an ADO.NET Entity Framework model. The problem is that in a XAML/C# Metro app, executing the following code fails: SampleEntities ctx = ((App)Application.Current).Context; var query = from p in ctx.Products where p.Name == name select p; foreach

How can I play multiple sounds at the same time using SharpDX in WinRT?

吃可爱长大的小学妹 提交于 2019-12-19 10:57:07
问题 I am trying to make a musical instrument type of application. The problem I am having is that a new sound will only play if the old one is finished. I would like to be able to play them simultaneously. This is how my code looks like: First, the MyWave class which simply holds an audio buffer and some other info: class MyWave { public AudioBuffer Buffer { get; set; } public uint[] DecodedPacketsInfo { get; set; } public WaveFormat WaveFormat { get; set; } } In the SoundPlayer class: private

How to get title bar color of WPF window in Windows 8.1?

左心房为你撑大大i 提交于 2019-12-19 10:23:25
问题 To customize window's appearance using WindowChrome class, I would like to get the title bar color of WPF window in Windows 8.1. First, I tried SystemParameters.WindowGlassColor But this property but does not include correct alpha value (it is always 255). Second, I tried the function: DwmGetColorizationColor It seemed to work fine at first. The return value has correct color information including alpha channel. However, as changing "Color intensity" by slide bar in "Color and Appearance"

WinRT C# - HttpRequestException: error 500

天大地大妈咪最大 提交于 2019-12-19 10:21:47
问题 I'm trying to port my WP8 application to a Windows Store App and I'm getting an HttpRequestException when performing the getStringAsync of the HttpClient. Here is the code snippet giving me the issue: HttpClient client = new HttpClient(); Stream stream = await client.GetStreamAsync(new Uri("http://www.psnapi.com.ar/ps3/api/psn.asmx/getPSNID?sPSNID=philippemexes", UriKind.Absolute)); and here is the complete exception message: HttpRequestException: Response status code does not indicate

How to get camera feeds in Windows 8 Metro style app?

折月煮酒 提交于 2019-12-19 10:21:04
问题 I am trying to get camera feeds in Windows 8 metro style app so that i can make some changes on it something like augmented reality. I have tried but only able to find how to capture images using CameraCaptureUI(). Can anyone tell me how can i achieve camera feeds for AR? 回答1: All you need to do is pass in CameraCaptureUIMode.Video for CaptureFileAsync. Here is a sample CameraCaptureUI dialog = new CameraCaptureUI(); dialog.VideoSettings.Format = CameraCaptureUIVideoFormat.Mp4; StorageFile