windows-7

GetPwrCapabilities is giving me wrong sleep state results on some computers. How can I get a more accurate result?

放肆的年华 提交于 2020-06-13 09:13:33
问题 I have a 64-bit Win7 Ultimate machine that I'm calling GetPwrCapabilities on. However it tells me that sleep state 4 (hibernation) is not available and that there is no hibernation file. I can hibernate the machine and there is a hibernation file. Am i doing something wrong? Is there anything else I can call to get accurate supported sleep states Thanks EDIT It's interesting that powercfg -AVAILABLESTATES provides the correct information. Does anyone know what API it calls or why there is a

Proper handling of modal window “Minimize” behavior

馋奶兔 提交于 2020-06-10 15:22:14
问题 I have the following issue: we're building a rather large application (win32, Delphi 6 Enterprise). In several part of the application, modal windows are used, usually containing the detail of the selection of the main window. We included a modification of the handling of the WM_SYSCOMMAND messages so that, if the window is modal, then a SW_SHOWMINNOACTIVE message will be sent to the application's main window. This causes the whole application to be minimized instead of just the modal form.

Proper handling of modal window “Minimize” behavior

邮差的信 提交于 2020-06-10 15:22:10
问题 I have the following issue: we're building a rather large application (win32, Delphi 6 Enterprise). In several part of the application, modal windows are used, usually containing the detail of the selection of the main window. We included a modification of the handling of the WM_SYSCOMMAND messages so that, if the window is modal, then a SW_SHOWMINNOACTIVE message will be sent to the application's main window. This causes the whole application to be minimized instead of just the modal form.

Excel VBA Msxml2.XMLHTTP.6.0 vs Msxml2.ServerXMLHTTP.6.0

。_饼干妹妹 提交于 2020-05-25 04:46:07
问题 I am a self-taught, amateur programmer, and I am new to this forum. Please bear with me. About two years ago, I wrote a simple Excel vba program to login in to a website and grab a customer statement in the form of a .csv file. My program utilizes GET and POST requests. This program worked perfectly (for my needs) until about three weeks ago, when it unfortunately broke on me. The program could not get through the initial GET request. Specifically, it would break on the getReq.send line. I

How do I get GNU parallel to work on git bash in Windows 7?

白昼怎懂夜的黑 提交于 2020-05-17 03:25:38
问题 I was able to install GNU Parallel globally in git-bash by following this answer. However, on running an example command as mentioned in the parallel-tutorial, parallel -k echo ::: A B C > abc-file I keep getting this error sh: -c: option requires an argument sh: -c: option requires an argument sh: -c: option requires an argument . . . What am I doing wrong here? 回答1: So the root cause is that CygWin (contrary to GNU/Linux) does not respect redirection of STDERR if the command line is too

How to use vscode remote containers with Docker Toolbox (Windows 7)?

早过忘川 提交于 2020-05-14 08:54:51
问题 I use Windows 7 and can't install Docker for Windows, so I use Docker Toolbox. Docker Toolbox is not supported by Microsoft Visual Studio Code for Remote Container Development. But I need to use this functionality with my docker toolbox. There is an issue on Github not solved yet https://github.com/microsoft/vscode-remote-release/issues/95 回答1: You need to start your docker-machine. Need last version of vscode (1.40.2+) In your .devcontainer.json you can overwrite the workspace mount volumene

How to use vscode remote containers with Docker Toolbox (Windows 7)?

做~自己de王妃 提交于 2020-05-14 08:51:16
问题 I use Windows 7 and can't install Docker for Windows, so I use Docker Toolbox. Docker Toolbox is not supported by Microsoft Visual Studio Code for Remote Container Development. But I need to use this functionality with my docker toolbox. There is an issue on Github not solved yet https://github.com/microsoft/vscode-remote-release/issues/95 回答1: You need to start your docker-machine. Need last version of vscode (1.40.2+) In your .devcontainer.json you can overwrite the workspace mount volumene

SameSite=None w/ Secure Breaking iFrame in IE11

岁酱吖の 提交于 2020-04-30 11:43:15
问题 With the recent changes it seems that SameSite cookie attributes are throwing a wrench into my website now. A cross-browser iframe that was working before on my site is now broken - even with the SameSite=None; Secure being passed through the iFrame in the response header. I've seen very different reports from people saying Windows 7 doesn't support SameSite=none. Others saying the Secure is breaking or not breaking it. But even the current Microsoft documentation doesn't lay out exactly how

“Class not registered” when loading the Video Processor MFT on Windows 7

早过忘川 提交于 2020-04-16 02:59:09
问题 I have the following COM call: IMFTransform* pMFT = NULL; HRESULT hr = CoCreateInstance(CLSID_VideoProcessorMFT, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pMFT)); On my development machine, this call to CoCreateInstance succeeds. However, when I deploy this on my old Windows 7 machine, the call to CoCreateInstance fails, and I don't know why. Here's how I'm displaying the error: _com_error err(hr); LPCTSTR hrErrMsg = err.ErrorMessage(); WCHAR msg[MAX_PATH]; StringCbPrintf(msg, sizeof(msg), L

Python 3.5 pip install not working on Windows 7 - PermissionError

蓝咒 提交于 2020-04-11 07:37:53
问题 I tried to install some libraries with pip install , however I can't because everytime I get: PermissionError: [WinError 5] Permission denied: 'c:\\program files <x86>\\python35-32\\Lib\\site-packages\\PIL Wanted to install PIL, ImageTK, Pillow etc. I get this error everytime, how can I fix this? I tried easy_install too, didn't work. I checked some questions about this but none of them worked either, there are no answer. 回答1: Windows blocks access to this folder for normal users. You have to