windows-10

I can't get SHGetFileInfo to return an icon location

試著忘記壹切 提交于 2019-12-13 07:02:32
问题 I'm on Windows 10 Pro and Visual Studio 2013, and I'm using SHGetFileInfoW to get an icon location (path + index) for a file type: std::wstring wFile { L"a.bas" }; SHFILEINFOW fi {}; DWORD success = ::SHGetFileInfoW(wFile.c_str(), FILE_ATTRIBUTE_NORMAL, &fi, sizeof(fi), SHGFI_USEFILEATTRIBUTES | SHGFI_ICONLOCATION); No matter whether wFile refers to an existing file or is just any filename, the call returns 1 indicating success. The iIcon member of fi is set to a number, but szDisplayString

How to expand a ListView Item on SelectionChanged event in Windows 10?

本小妞迷上赌 提交于 2019-12-13 06:22:31
问题 I am currently working with Windows 10 and I am using a ListView to display items based on my requirement. Now I want to expand ListView on the same page when User clicks on ListView Item and provide him with some options to make user experience easy. I am aware on how to implement ListView and display items using DataTemplate but I am not sure whether I can achieve my requirement using ListView. I want to achieve something like below: I want to display options like Contact, Add photo, etc on

sqlite query not matching string

妖精的绣舞 提交于 2019-12-13 05:28:39
问题 I have a list of about 350 music files that I store in an sqlite table. If new files get added they are added to the db. So I have a query to check if the path of the file is in the table and if not then insert it. However 3 files never match the query even though they are in the table! Therefore they are added over and over each time I start my app. I am using SQLite for Universal Windows Platform & SQLite.Net-PCL packages for the sql content. File is my custom class that stores some strings

DesktopAppConverter woes, Windows 10 v.17134

*爱你&永不变心* 提交于 2019-12-13 05:17:11
问题 I'm trying to convert my Win32 app from its MSI into UWP appx package using Desktop App Converter, so that I can update it in the Windows Store. Here's the steps. When I downloaded the Windows_BaseImage_DAC_17134.wim file and tried to install it, I got this at the end (I'm not sure if it means anything): Here's the same as a text: VERBOSE: Removing any pre-existing NAT network Get-NetNat : Invalid class At C:\Program Files\WindowsApps\Microsoft.DesktopAppConverter_2.1.1.0_x64__8wekyb3d8bbwe

ERROR: C:\OpenCV-Qt\build\bin\libopencv_core320.dll:-1: error: LNK1107: invalid or corrupt file: cannot read at 0x3D0

℡╲_俬逩灬. 提交于 2019-12-13 04:40:59
问题 I have been following this tutorial and I did all of them carefully. But afterwards I ran the simple code: I saw this error and how can I fix it? Tutorial: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows I removed qt and opencv and I used the version that used in the tutorial that I mentioned but I got the same error. And also I added "img.jpg" to my project directory. #include "mainwindow.h" #include "ui_mainwindow.h" #include <opencv2/core/core.hpp> #include <opencv2/highgui

Find currently active user in xbox one UWP

≡放荡痞女 提交于 2019-12-13 04:33:10
问题 Using the below code I am able to get the list of all signed in users. Is there a way to know which is the current active user? IReadOnlyList<User> users = await Windows.System.User.FindAllAsync(); 回答1: I recently ran into this problem myself, and posted about it here. Someone responded there, and gave me some pretty big hints, which in turn helped me to get this solved. Here is the quick and dirty (my UWP is HTML/JavaScript based BTW): First, include the WinJS library in your project, if you

MSSQL query no longer works with Windows 10 client: The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

淺唱寂寞╮ 提交于 2019-12-13 04:12:11
问题 We have been using the following SQL query for a long time in a WinForms program with no problems, until some end users upgraded to Windows 10. They suddenly get the exception:"ERROR [22007] [Microsoft][SQL Server Native Client 11.0][SQL Server]The conversion of a varchar data type to a datetime data type resulted in an out-of-range value." This error has been posted to inside here earlier, but I did not find any post where the occurrence was connected to a Windows 10 upgrade. The query is

Run python script from UWP

∥☆過路亽.° 提交于 2019-12-13 03:23:13
问题 I've already read and researched all over the net including here: Windows Universal Apps: Call python method from C# [closed] And I understand that UWP is a sandbox and can't open other processes. Nonetheless, I got no other choice but to use python API inside UWP app. The answer in the link above is not clear enough for me and I hope to get any solution, even if it's not a direct one. Of course I tried IronPython which is not working. And Process/ProcessInfo which brigs-up "access denied".

issues with WS2_32.dll behavior between windows 10 vs windows7

 ̄綄美尐妖づ 提交于 2019-12-13 03:18:49
问题 Did not find any suitable solution with existing questions so asking new question here. We use log4cxx which has WS2_32.LIB as dependency. WS2_32.LIB is present in Windows SDK version 10.0.16299.0. When using this log4cxx.dll on windows7 WS2_32.dll and all its dependencies gets loaded properly and application start normally. but in windows 10 environment WS2_32.dll expects dependent dll's like API-MS-WIN-CORE-CRT-L1-1-0.DLL which are not part of windows10 or any of the microsoft visual c++

MSBuild: 'error MSB6006: “cmd.exe” exited with code 1.'

社会主义新天地 提交于 2019-12-13 03:13:53
问题 When attempting to build TensorFlow with CMake and MSBuild on Windows 10, I get the following error when running MSBuild: "C:\work\tensorflow\tensorflow\contrib\cmake\build\tf_tutorials_example_trainer.vcxproj" (default target) (1) -> "C:\work\tensorflow\tensorflow\contrib\cmake\build\tf_core_gpu_kernels.vcxproj" (default target) (90) -> (CustomBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171,5): error MSB6006: "cmd.exe" exited with code