windows-10

WMI not working after upgrading to Windows 10

╄→尐↘猪︶ㄣ 提交于 2019-12-01 06:25:45
I had been using the code below for a console application in Visual Studio on Windows 8 to return the description and device ID of connected serial devices. I was using a modified version of this in an application I'm creating to automatically detect the COM port of an Arduino. It no longer returns anything since I've done a fresh install with Windows 10. I have a USB to serial AVR programmer that still shows up using this code however. I checked the registry and the Arduino is listed in SERIALCOMM, the Arduino is showing as 'USB Serial Port (COM6)' under 'Ports (COM & LPT)' in Device Manager

Why isn't IUpdateSession::WebProxy working on Windows 10?

六眼飞鱼酱① 提交于 2019-12-01 06:02:00
问题 I've got some in-house code that performs a Microsoft Update scan using the Windows Update API. Because some of the clients do not have direct internet access, I explicitly set the WebProxy property to point to our local proxy server. During testing (on Windows 7) this seemed to work perfectly. Now I'm testing it on Windows 10 (see footnote 1) and it seems that the proxy setting is being ignored. The Windows Update client was revised significantly in Windows 10, so it is possible that this is

WMI not working after upgrading to Windows 10

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 05:32:27
问题 I had been using the code below for a console application in Visual Studio on Windows 8 to return the description and device ID of connected serial devices. I was using a modified version of this in an application I'm creating to automatically detect the COM port of an Arduino. It no longer returns anything since I've done a fresh install with Windows 10. I have a USB to serial AVR programmer that still shows up using this code however. I checked the registry and the Arduino is listed in

How to install tesserocr on windows?

扶醉桌前 提交于 2019-12-01 05:22:52
I downloaded executable file of tesseract-OCR and installed it. On the other hand, I also downloaded a zipfile of leptonica from http://www.leptonica.com/download.html . It includes two directory that is lib and include . Next I tried to do pip install tesserocr in a python virtualenvironment and it returned error tesserocr.cpp(460) : fatal error C1083: Cannot open include file: 'leptonica/allheaders.h': No such file or directory I noticed that allheaders.h is in include directory from the leptonica file I downloaded earlier. How do I solve this? Where should I put the directory include and

GeoDjango could not find GDAL library in Windows 10

家住魔仙堡 提交于 2019-12-01 05:20:54
I am using Django 11.4 on Windows 10 and I am having problems when I try and migrate my models. I receive this error: django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library (tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19") I followed GeoDjango's installation instructions ( https://docs.djangoproject.com/en/1.11/ref/contrib/gis/install/ ), but I am still having trouble. Everything I have found on this error says to change the system environment variables. I installed OSGe4W and added GDAL_DATA = C:\OSGeo4W\share\gdal as well as PROJ_LIB= C:\OSGeo4W\share\proj . I

What are the two numbers in top left of uap app using VS2015 and Windows 10?

╄→гoц情女王★ 提交于 2019-12-01 05:17:44
I have installed Win 10 Preview and VS 2015. I created a new uap blank app and ran it and I get a Window with two numbers on the top left, eg 000 000 If I add a button to the app (and move it away from the obscuring numbers) and then click the button, the numbers change in what seems to me a random way, eg 020 001. What is going on? hayrob I have now found that these numbers disappear if you set this.DebugSettings.EnableFrameRateCounter = false in OnLaunched. This is explained here Not that this means anything to me. Dung It's the frame counter turned on by the following code snippet in your

How to add xbf files to visual studio project

匆匆过客 提交于 2019-12-01 05:15:37
问题 I have created a class library for Windows Universal Platform (Win 10 UWP). The library houses some UserControls. When I add the dll from this library to a Win 10 UWP app, and use the UserControls, it gives a XamlParseException as stated here in another question I posted But when I reference the whole project, there is no exception and I can use the UserControl. This happens supposedly because there are xbf files which are not added to the Win 10 app project when I just reference the dll file

How to use ANSI escape sequences with CSCRIPT on Windows 10?

醉酒当歌 提交于 2019-12-01 05:12:10
I'm trying to use the new VT100 ANSI escape sequence capabilities available in the Windows 10 console with CSCRIPT (JScript). But I cannot get it to work. Here is a really simple JScript script: test.js WScript.Echo('\x1B[7mReverse\x1B[0m Normal'); WScript.stdout.WriteLine('\x1B[7mReverse\x1B[0m Normal'); I've done a number of tests, and the escape sequences output by CSCRIPT are impotent when written directly to the screen, and only work if written to a file first and then TYPEed, or else captured by FOR /F and ECHOed. I have two questions: 1) Why doesn't the direct write to the console work

Winform app name shown as _alphanumeric on Startup tab in Task Manager in windows 10

喜欢而已 提交于 2019-12-01 04:26:22
问题 On Windows 10, my Form application is showing as alphanumeric characters (_1F036AE84FF792FB79A74F) on Startup tab in Task Manager . It is a MSI installation file. Following is the path it is running the exe from: C:\Users\win10user\AppData\Roaming\Microsoft\Installer\{ProductCode-Of-App} How can I show Form application instead of this alphanumeric value? EDIT : I am using Microsoft Visual Studio 2015 Installer Projects to create MSI file EDIT TWO: Windows 7 (msconfig.exe): Windows 10 (Task

How to handle back button pressed for UWP

眉间皱痕 提交于 2019-12-01 04:20:14
问题 I used to use hardware button API in Windows Phone 8.1 XAML. However, in UWP some devices don't have back button. How do I adapt to the new app model? 回答1: you can use BackRequested event to handle back request: SystemNavigationManager.GetForCurrentView().BackRequested += OnBackRequested; if (App.MasterFrame.CanGoBack) { rootFrame.GoBack(); e.Handled = true; } 回答2: Little bit explained answer. You can used SystemNavigationManager of Windows.UI.Core namespace For Single Page If you just want