windows-8

StreamSocket, DataWriter.StoreAsync(), DataReader.LoadAsync() — Asynchronous problems

混江龙づ霸主 提交于 2019-12-11 04:08:28
问题 I'm creating a Win 8 store app in which I connect to a server, written in Java, using StreamSocket. When I run the app in debug, with breakpoints on StreamSocket.ConnectAsync(...), DataWriter.StoreAsync(), and DataReader.LoadAsync(...), it connects, sends the message, and receives a message back. However, once I remove any one of my breakpoints, that method doesn't do it's job. How can I can fix this issue? Here is my code: public async void Connect() { try { await socket.ConnectAsync(new

SuspensionManager Error when application has more than 1 page in windows 8 XAML/C# app

别说谁变了你拦得住时间么 提交于 2019-12-11 04:07:31
问题 I'm writing a windows 8 XAML/C# app and have a little problem with the session manager. Within my App.xaml.cs my OnSuspending method looks like this: private async void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); //TODO: Save application state and stop any background activity await SuspensionManager.SaveAsync(); deferral.Complete(); } I have registed my rootFrame with the SuspensionManager in the OnLaunched method in App.xaml.cs:

0x800a1391 - JavaScript runtime error: 'WinJS' is undefined

落花浮王杯 提交于 2019-12-11 04:04:49
问题 I have download the code from CodePlex Then I install the sdk's of live,telerik etc After installation I ran the code and I'm getting the following error `0x800a1391 - JavaScript runtime error: 'WinJS' is undefined` The error occured in the Converters.Js file here it is (function() { var r = Windows.Storage.ApplicationData.current.roamingSettings.values; // Export shortDate WinJS.Namespace.define("codeSHOW.Converters", { // Error Occured here }); })(); Any help is highly appreciated. Thanks.

HttpClient missing response headers in WinRT / Win8

浪子不回头ぞ 提交于 2019-12-11 03:58:29
问题 I'm using HttpClient in a Windows 8 app and it seems that it purposely hides custom headers in the response. For example: Our response received has a custom header called "Sample-Header: 123" I expect that the headers in the response content would contain "Sample-Header" with a value of "123" var client = new HttpClient(); var response = await client.GetAsync(uri); string sample; IEnumerable<string> values; if (response.Content.Headers.TryGetValues("Sample-Header", out values)) { // This

Web Services from WinRT Metro

 ̄綄美尐妖づ 提交于 2019-12-11 03:54:22
问题 I am trying to use the DictService web service from a Windows 8 Xaml / C# Metro application and am having issues. The WSDL for the DictService is http://services.aonaware.com/DictService/DictService.asmx?WSDL But when I add the service reference I get the following warning: Custom tool warning: Endpoint 'DictServiceSoap12' at address 'http://services.aonaware.com/DictService/DictService.asmx' is not compatible with Windows Metro style apps. Skipping... Any ideas on how I can get past this and

Setting up OpenCV 2.4.3 & Microsoft Visual Studio 2012 ( Win8 x64 )

◇◆丶佛笑我妖孽 提交于 2019-12-11 03:49:28
问题 I want to configure opencv with Visual Studio 2012 on Windows 8 x64 . I configured opencv and there is no compilation errors, but when I execute my program I get this error : The program can’t start because MSVCR100D.dll is missing from your computer I tried to install Visual C++ Redistributable for Visual Studio 2012 and Microsoft Visual C++ 2010 Redistributable Package (x64) but always the same error. 回答1: If it's still relevant, try this tutorial to create project and configure OpenCV

icacls Deny Everyone Directory Delete Permission

房东的猫 提交于 2019-12-11 03:48:56
问题 I am trying to deny all users from being able to delete a folder (as well as its contents, if possible). What I currently have is not working. icacls pics /deny Everyone:(OI)(CI)(DE) Using the above line neither protects the folder nor its content as I can still delete the folder and all files within it. 回答1: I think i found a solution: icacls pics /deny Everyone:(OI)(CI)(DE,DC) which denies the specific rights to delete (DE) and to delete childs (DC) . To get this language independent use *S

Win8 - Winforms mouse transparent form with clickable controls in it

限于喜欢 提交于 2019-12-11 03:45:33
问题 I'm trying to make a mouse transparent form in win8 and winforms, that contains controls that are clickable. I'm able to make the form mouse transparent, using this code int initialStyle = GetWindowLong(this.Handle, -20); SetWindowLong(this.Handle, -20, initialStyle | 0x80000 | 0x20); (on win8 the WndProc approach does not work) But when I make the form mouse transparent, the controls that are contained in this form are also mouse transparent What can I do? 回答1: You can create a Form and set

Verifying Windows 8 inapp-purchase receipt with xmlsec1

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:39:17
问题 How can I verify Win8 inapp-purchase receipt, using xmlsec1? Here is what I'm tyring to do: My sample receipt (saved in file receipt.xml ): <?xml version="1.0"?> <Receipt Version="1.0" ReceiptDate="2012-08-30T23:10:05Z" CertificateId="b809e47cd0110a4db043b3f73e83acd917fe1336" ReceiptDeviceId="4e362949-acc3-fe3a-e71b-89893eb4f528"> <AppReceipt Id="8ffa256d-eca8-712a-7cf8-cbf5522df24b" AppId="55428GreenlakeApps.CurrentAppSimulatorEventTest_z7q3q7z11crfr" PurchaseDate="2012-06-04T23:07:24Z"

Save the page state when navigating out

北城以北 提交于 2019-12-11 03:37:40
问题 Say I have two pages, A and B. The user can modify things on page A then navigate to page B. When he is on page B, he clicks the "Back" button to go to page A. Everything that has been done previously is lost. There is a way to get the exact same state by using this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled; But is there a way to know whether the page is opened for the first time a by using the back button? 回答1: yes it is: protected override void