windows-8

Visual Studio 2010 SP1 incompatible with Windows 8?

試著忘記壹切 提交于 2019-12-20 19:59:13
问题 I ran Windows 8 Upgrade Assistant on my laptop today, and I saw something very interesting. Visual Studio 2010 SP1 is not compatible with Windows 8, but Visual Studio 2010 (no service pack) is compatible. Does Visual Studio 2010 SP1 work on Windows 8? If not, are there just a few specific functions that do not work correctly, or does it just crash and burn and become unusable? 回答1: Compatibilty Center listed out that Microsoft Visual Studio 2010 SP1 is not compatible with Windows 8. But

Windows 8.1 unable to install .NET Framework 3.5 0*800F0906

自古美人都是妖i 提交于 2019-12-20 19:43:31
问题 After trying to install .net 3.5 via the program and features (see below). I was getting unable to install error 800F0906 I am using windows 8.1. 回答1: I inserted windows 8.1 dvd and mounted to d drive then executed from powershell. Open admin command prompt Type powershell From ps prompt type Enable-WindowsOptionalFeature -Online -FeatureName 'NetFx3' -Source 'd:\sources\sxs' It did take 5 minutes to run. 回答2: See http://yellowduckguy.wordpress.com/2012/10/19/windows-8-fix-enable-feature-net

Is there an API for the built-in Windows 8 “Modern reader” PDF Viewer?

戏子无情 提交于 2019-12-20 16:57:52
问题 Windows 8 will include a built-in PDF reader called "Modern Reader". In our current application, we embed the Adobe Reader as an ActiveX control. Can I embed Windows 8 "Modern Reader" in a similar way? 回答1: Windows 8.1 has APIs for rendering PDFs. Please have a look at the Windows.Data.Pdf namespace Build conference session recording available on Channel 9. This details how to use the new PDF rendering APIs. 回答2: The answer to your question is 'no'. There are (at this time) no published api's

Is there any way to write a WinRt (Metro) app that will also work on Windows 7 and Vista?

白昼怎懂夜的黑 提交于 2019-12-20 16:50:45
问题 We can’t just leave our customers that are not able to upgrade to windows 8 for a long time in the larch. However there is demand for a “tablet”/”touch” version of our app. So how can we support both touch with Metro on Windows 8 and our current customers from a single code base? When WPF come out, after a lot of “Pushing” Microsoft saw since and make it work on Windows XP – has anything like this been talked about for WinRT. (I am not expecting any solution to work on XP, as XP support is

Is there any way to write a WinRt (Metro) app that will also work on Windows 7 and Vista?

十年热恋 提交于 2019-12-20 16:50:14
问题 We can’t just leave our customers that are not able to upgrade to windows 8 for a long time in the larch. However there is demand for a “tablet”/”touch” version of our app. So how can we support both touch with Metro on Windows 8 and our current customers from a single code base? When WPF come out, after a lot of “Pushing” Microsoft saw since and make it work on Windows XP – has anything like this been talked about for WinRT. (I am not expecting any solution to work on XP, as XP support is

Metro App - How to detect if logged in with Live ID or Local Account

泪湿孤枕 提交于 2019-12-20 15:25:55
问题 I am building a Metro C# SkyDrive API on top of the Live Connect SDK (http://msdn.microsoft.com/en-us/live/default) - in Windows 8 the user has the choice to SignIn to the Windows 8 machine with either a LOCAL account, or a LIVE account. When using the Live Connect SDK, if I call // assume wlscopes is properly set LiveAuthClient liveAuthClient = new LiveAuthClient(); LiveLoginResult loginResult = await liveAuthClient.LoginAsync(wlscopes); // do some stuff on skydrive liveAuthClient.Logout();

GetQueuedCompletionStatus can't dequeue IO from IOCP if the thread which originally issued the IO is blocking in ReadFile under windows 8

我们两清 提交于 2019-12-20 12:19:06
问题 My app stop working after switching to windows 8. I spend hours to debug the problem, found out IOCP behave differently between windows 8 and previous versions. I extract the necessary code to demonstrate and reproduce the problem. SOCKET sListen; DWORD WINAPI WorkerProc(LPVOID lpParam) { ULONG_PTR dwKey; DWORD dwTrans; LPOVERLAPPED lpol; while(true) { GetQueuedCompletionStatus((HANDLE)lpParam, &dwTrans, &dwKey, (LPOVERLAPPED*)&lpol, WSA_INFINITE); printf("dequeued an IO\n"); } } DWORD WINAPI

In windows 8 metro style app, how to update live tile while app is not running?

孤街浪徒 提交于 2019-12-20 09:45:45
问题 In windows 8 metro style app, how to update live tile while app is not running ? And the live tile start to run when OS system begin to start. http://blogs.msdn.com/b/windowsappdev/archive/2012/04/16/creating-a-great-tile-experience-part-1.aspx "3.Use polling notifications from the cloud to update the tile while the app is not running" But I cannot find any example code. I also try MSDN's PushNotificationSample, But I don't know how to set the "Server URI"? Does anyone have similar

Can I uniquely identify a device in Windows 10/Windows 8/WinRT

假装没事ソ 提交于 2019-12-20 09:39:11
问题 Is there any mechanism to identify a device uniquely (even if it is anonymous)? To be clear, by "device" I mean the computer/slate/pc. Windows 8.x http://codepaste.net/ybt893 string HardwareId() { var token = Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken(null); var hardwareId = token.Id; var dataReader = Windows.Storage.Streams.DataReader.FromBuffer(hardwareId); var bytes = new byte[hardwareId.Length]; dataReader.ReadBytes(bytes); return BitConverter.ToString(bytes); }

Is it possible to call an awaitable method in a non async method? [duplicate]

社会主义新天地 提交于 2019-12-20 08:49:16
问题 This question already has answers here : How to call asynchronous method from synchronous method in C#? (14 answers) Closed 2 years ago . In a windows 8 application in C#/XAML, I sometimes want to call an awaitable method from a non asynchronous method. Actually is it correct to replace this : public async Task<string> MyCallingMethod() { string result = await myMethodAsync(); return result; } by this : public string MyCallingMethod() { Task.Run(async () => { string result = await