windows-10

How to wait for WebViewBrush.Redraw() to finish (UWP printing)?

亡梦爱人 提交于 2019-12-10 12:55:19
问题 I have a basic UWP app with an embedded WebView presenting a rather large HTML document (up to 500 letter-sized printed pages). I'd like to add support for printing that HTML document. Here is my approach: To support pagination, I generate a second HTML document broken into "pages" by using a <div style="height:100vh"> for each "page", up to 500 of these. I load that "paginated" HTML into a second, hidden WebView on the XAML page that I resize to fit exactly one page based on the user

RabbitMQ Failed to initialize erlang distribution

懵懂的女人 提交于 2019-12-10 12:45:36
问题 I have installed RabbidMQ but when i try to use rabbitmqctl status in cmd i have next result : D:\RabbitMQ\rabbitmq_server-3.6.2\sbin>rabbitmqctl status Error: Failed to initialize erlang distribution: {{shutdown, {failed_to_start_child, net_kernel, {'EXIT',nodistribution}}}, {child,undefined, net_sup_dynamic, {erl_distribution, start_link, [['rabbitmq-cli-70', shortnames]]}, permanent,1000,supervisor, [erl_distribution]}}. Folder with Erlang : D:\erl7.3 I have following environment variables

midiOutOpen on Windows 10 using Microsoft GS Wavetable Synth fails

◇◆丶佛笑我妖孽 提交于 2019-12-10 12:33:31
问题 I have an application that relies on the in built Microsoft GS Wavetable Synth. It has worked flawlessly on Windows XP, Vista, 7, 8 and 8.1. While the first call to midiOutOpen on Windows 10 works, subsequent calls result in error code 1, meaning 'Unspecified error'. The code is simple: result = midiOutOpen(&_midiOutHandle, midiOutputDevice, NULL, 0, CALLBACK_NULL); Any ideas regarding how to resolve this hugely appreciated. 回答1: I see it. Tracing through the machine code, I see the

Win 10 Universal App Project Creation Error

本秂侑毒 提交于 2019-12-10 12:14:42
问题 I've been keen to start developing Windows 10 apps for a while now, but I found things to be a little to unknown and unstable in the near past. With a release date official and Windows 10 making some great progress I've been trying to create a Universal App. However, I receive the following error when loading any Universal app - doesn't matter if it's Visual Basic, C# or C++ I receive the same error and the Project Solution doesn't seem right. Error: Project Solution: My understanding is that

How Can My Win32 App Steal Focus From My UWP App?

徘徊边缘 提交于 2019-12-10 11:58:28
问题 I've tried the following code: [DllImport("user32.dll")] private static extern int ShowWindow(IntPtr hwnd, int nCmdShow); [DllImport("user32.dll")] private static extern bool SetForegroundWindow(IntPtr hWnd); [DllImport("user32.dll")] private static extern IntPtr SetFocus(IntPtr hwnd); void TakeFocus() { var process = Process.GetProcessesByName("myProcess").FirstOrDefault(); if (process != null) { // Tried each of the following: ShowWindow(process.MainWindowHandle, 1); ShowWindow(process

How can I use C# to get all the services for a Bluetooth LE (BLE) device?

邮差的信 提交于 2019-12-10 11:56:52
问题 I am connecting to a Magicblue Bluetooth LE LED light with C# on Windows 10 and want to be able to change its colors. I am able to get the GattDeviceService and access its single characteristic just fine. However, I'm not able to figure out how to get to the device's other two services. One of them has a write characteristic to set the RGB Color. Using both my iPhone with the LightBlue App and Microsofts BthGATTDump.exe I'm able to see the services and characteristics. I was thinking once I

Gridview Item dynamic width according to Screen Size in UWP

此生再无相见时 提交于 2019-12-10 11:55:25
问题 I have created a GridView which gets data through data binding. What I want to do next is make the GridView item width dynamic according to the Screen Size ( Like the ones they have done in the Windows 10 news, sports app, etc. ) So far I have done it successfully for minimum window width 0 using visual state manager by setting the horizontal alignment to stretch, but I am not being able to continue this for other wider window sizes. Any kind of help for sorting this out will be appreciated.

Windows Universal App SetTitleBar

依然范特西╮ 提交于 2019-12-10 11:38:35
问题 I have a question about the Title'Bar sample from Microsoft's GitHub repository(https://github.com/JustinXinLiu/FullScreenTitleBarRepo/tree/master/FullScreenTitleBarRepo): In the AddCustomTitleBar function,there has a line: customTitleBar.EnableControlsInTitleBar(areControlsInTitleBar); EnableControlsInTitleBar is here: public void EnableControlsInTitleBar(bool enable) { if (enable) { TitleBarControl.Visibility = Visibility.Visible; // Clicks on the BackgroundElement will be treated as clicks

ColdFusion 11 on Windows 10 with IIS is not working

╄→尐↘猪︶ㄣ 提交于 2019-12-10 11:36:35
问题 I installed CF 11 on Windows 10 Professional using IIS option as shown below. But when I go to IIS I don't see CFIDE folder there: I thought the CF installation process would have created a CFIDE folder in IIS with its subfolder Administrator that points to the Administrator URL. But IIS did have any such folder. If I remember in Windows 7, installing CF 11 with IIS option automatically configure Administrator website in IIS - at least that what I recall I had done in Win7. So I manually

“Could not find a JavaScript runtime”. How do I install one?

廉价感情. 提交于 2019-12-10 11:34:20
问题 I am unable to start a rails server. Apparently I don't have a JavaScript runtime. $ rails s c:/Ruby22/lib/ruby/gems/2.2.0/gems/bundler-1.13.6/lib/bundler/runtime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. I went to the link https://github.com/rails/execjs But I couldn't