windows-8

A hostname with Unicode characters is valid in Windows 8

╄→尐↘猪︶ㄣ 提交于 2021-02-10 05:43:27
问题 Uri.CheckHostName("контосо.ком") returns UriHostNameType.Unknown everywhere, but on Windows 8, where it returns UriHostNameType.Dns . Any ideas why all of a sudden a hostname with Unicode/Cyrillic characters is valid in Windows 8? 回答1: Because of this. Internationalized domain name http://en.wikipedia.org/wiki/Internationalized_domain_name http://tools.ietf.org/html/rfc5895 来源: https://stackoverflow.com/questions/14075023/a-hostname-with-unicode-characters-is-valid-in-windows-8

Load local HTML into WebView

天大地大妈咪最大 提交于 2021-02-08 14:29:07
问题 Can I load a local HTML file (with images and ...) into a WebView ? Just setting the Source parameter does not do the trick. 回答1: You can load it from a file as long as the file is part of the app package, e.g.: WebView2.Source = new Uri("ms-appx-web:///assets/text.html"); From WebView.Navigate WebView can load content from the application’s package using ms-appx-web://, from the network using http/https, or from a string using NavigateToString. It cannot load content from the application’s

Using std::string causes Windows “Entry Point Not Found” [duplicate]

ぃ、小莉子 提交于 2021-02-07 13:58:17
问题 This question already has answers here : the procedure entry point __gxx_personality_v0 could not be located (5 answers) Closed 2 years ago . When I compile this with G.C.C.: #include <iostream> #include <string> int main() { std::cout << std::string("\r\n"); return 0; } By using the following batch: g++ -Wall main.cc And attempt executing the output ( a.exe ), then Windows crashes the initialization with this error: If I avoid using std::string in the C++ code it executes normally, even

Alternative for Task.Wait in UI thread

心不动则不痛 提交于 2021-02-07 12:58:26
问题 I know it is bad to call Task.Wait in UI thread. It causes a deadlock. Please refer to Constructor invoke async method Await, and UI, and deadlocks! Oh my! Take the following code: public MainPage() { this.InitializeComponent(); step0(); step1(); } private async Task step0() { await Task.Delay(5000); System.Diagnostics.Debug.WriteLine("step 0"); } private async Task step1() { await Task.Delay(3000); System.Diagnostics.Debug.WriteLine("step 1"); } } How can I ensure that "step 0" is always

Why won't fiddler install my certificate windows 8? - unable to configure windows to trust Fiddler Root certificate

耗尽温柔 提交于 2021-02-07 03:22:42
问题 I have an application which is making calls to twitter and I need to inspect the traffic so that I can learn more about oAuth. When I double click the ssl traffic I get a yellow box which prompts me to go and change the options (by the way I am running my app through a proxy). After having read about using a certificate on my machine which fiddler creates I have clicked the link to let fiddler install certificates on my machine by following these instructions... http://docs.telerik.com

Why won't fiddler install my certificate windows 8? - unable to configure windows to trust Fiddler Root certificate

一世执手 提交于 2021-02-07 03:22:26
问题 I have an application which is making calls to twitter and I need to inspect the traffic so that I can learn more about oAuth. When I double click the ssl traffic I get a yellow box which prompts me to go and change the options (by the way I am running my app through a proxy). After having read about using a certificate on my machine which fiddler creates I have clicked the link to let fiddler install certificates on my machine by following these instructions... http://docs.telerik.com

Why won't fiddler install my certificate windows 8? - unable to configure windows to trust Fiddler Root certificate

纵然是瞬间 提交于 2021-02-07 03:21:35
问题 I have an application which is making calls to twitter and I need to inspect the traffic so that I can learn more about oAuth. When I double click the ssl traffic I get a yellow box which prompts me to go and change the options (by the way I am running my app through a proxy). After having read about using a certificate on my machine which fiddler creates I have clicked the link to let fiddler install certificates on my machine by following these instructions... http://docs.telerik.com

Is there any special API in Windows 8 to Mount ISO files?

微笑、不失礼 提交于 2021-02-07 03:18:15
问题 As you may know Windows Explorer allows to mount ISO files to a virtual drive. Is there any API which can be used to do this? 回答1: The native function call AttachVirtualDisk. However, if you are using C# like your tags suggest it may be easier to just call out to PowerShell and use its wrapper around that function Mount-DiskImage using System.Management.Automation; namespace IsoMountTest { internal class Program { private static void Main(string[] args) { var isoPath = @"C:\Foo\bar.iso";

Is there any special API in Windows 8 to Mount ISO files?

╄→尐↘猪︶ㄣ 提交于 2021-02-07 03:17:57
问题 As you may know Windows Explorer allows to mount ISO files to a virtual drive. Is there any API which can be used to do this? 回答1: The native function call AttachVirtualDisk. However, if you are using C# like your tags suggest it may be easier to just call out to PowerShell and use its wrapper around that function Mount-DiskImage using System.Management.Automation; namespace IsoMountTest { internal class Program { private static void Main(string[] args) { var isoPath = @"C:\Foo\bar.iso";

Is there any special API in Windows 8 to Mount ISO files?

巧了我就是萌 提交于 2021-02-07 03:17:52
问题 As you may know Windows Explorer allows to mount ISO files to a virtual drive. Is there any API which can be used to do this? 回答1: The native function call AttachVirtualDisk. However, if you are using C# like your tags suggest it may be easier to just call out to PowerShell and use its wrapper around that function Mount-DiskImage using System.Management.Automation; namespace IsoMountTest { internal class Program { private static void Main(string[] args) { var isoPath = @"C:\Foo\bar.iso";