windows

On Windows, packages installed with cabal seem to be unavailable in ghc/ghci

我与影子孤独终老i 提交于 2021-02-08 04:49:13
问题 I'm running the latest version of Haskell Platform 8.6.3 on a fairly standard Windows 10 x64 system. Now I am at my wits end getting packages installed from Hackage to work reliably. Attributing my issues to local configuration problems, I've taken all steps short of nuking my Windows installation. I have uninstalled and reinstalled Hackage, rebooted, scoured every last configuration file I could in any hidden directory or otherwise, deleted every registry key apparently related to Haskell,

List directory stack in windows

旧时模样 提交于 2021-02-08 04:39:42
问题 I am trying to list the directories that have been added to the directory stack using the command: pushd I cannot find any references or command on how to print the directory stack contents. Any help is appreciated 回答1: A pushd without parameters outputs the list of the stacked directories. pushd c:\ pushd windows pushd help pushd windows pushd en-us pushd Will output c:\Windows\Help\Windows c:\Windows\Help c:\Windows c:\ c:\Temp The latest pushed directory is missing here, but can simply

What are the differences among Top Level Window, Child window, Dialog(modal) window and non-dialog (modeless) windows?

安稳与你 提交于 2021-02-08 04:37:40
问题 Can any body please tell me how to distinguish among them? I have difficulty in understanding what are the distinguishing factors for top level child windows vs dialog/non-dialog window? Can the top level window be dialog/non-dialog window? Can the child window be dialog/non-dialog window? 回答1: Top-level forms are owned by the desktop, whereas child forms belong to another form; this means that closing or minimising the owning form will also affect the child form. Modal forms/dialogs block

How can I get the name of any process having a visible window - WinAPI?

余生颓废 提交于 2021-02-08 04:31:53
问题 I'm trying to get the name of processes which have a visible window. For example, if I have Chrome opened, I would like to get the string "chrome.exe", but I only get the init value "unknown" using the code below. I read around it could be an access rights problem, can you suggest me how to change them in order to get the name of processes? DWORD idProc = 0; //pointer to the process which created the window DWORD idThread = GetWindowThreadProcessId(Wnd->get_handle(), &idProc); Wnd->set_pid

How do I tell which Windows toolchain my Rust compiler is using?

孤人 提交于 2021-02-08 04:01:24
问题 I'm trying to install Rust debugging tools on my Windows machine. I know I have to find if I'm using the GNU or MSVC toolchain my Rust compiler is using, but I don't know how to find this information. 回答1: The platform toolchain is known by the compiler. Use rustc --version --verbose to see it: PS C:\Users\IEUser> rustc --version --verbose rustc 1.26.0 (a77568041 2018-05-07) binary: rustc commit-hash: a7756804103447ea4e68a71ccf071e7ad8f7a03e commit-date: 2018-05-07 host: x86_64-pc-windows

How do I tell which Windows toolchain my Rust compiler is using?

大城市里の小女人 提交于 2021-02-08 04:01:05
问题 I'm trying to install Rust debugging tools on my Windows machine. I know I have to find if I'm using the GNU or MSVC toolchain my Rust compiler is using, but I don't know how to find this information. 回答1: The platform toolchain is known by the compiler. Use rustc --version --verbose to see it: PS C:\Users\IEUser> rustc --version --verbose rustc 1.26.0 (a77568041 2018-05-07) binary: rustc commit-hash: a7756804103447ea4e68a71ccf071e7ad8f7a03e commit-date: 2018-05-07 host: x86_64-pc-windows

“cannot find -lcrypto -lssl” with OpenSSL on Windows with MinGW

拜拜、爱过 提交于 2021-02-08 03:50:13
问题 Trying out a c code for openssl, and this error showed up while compiling it in the command prompt. c:\openssl>gcc -lssl -lcrypto -o test test.c -IC:\openssl\include\ c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lssl c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lcrypto collect2.exe: error: ld returned 1 exit status now what should i do, please help. Edit: Even these didn't help: c:\openssl>gcc -o test test.c -lssl

“cannot find -lcrypto -lssl” with OpenSSL on Windows with MinGW

回眸只為那壹抹淺笑 提交于 2021-02-08 03:48:07
问题 Trying out a c code for openssl, and this error showed up while compiling it in the command prompt. c:\openssl>gcc -lssl -lcrypto -o test test.c -IC:\openssl\include\ c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lssl c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lcrypto collect2.exe: error: ld returned 1 exit status now what should i do, please help. Edit: Even these didn't help: c:\openssl>gcc -o test test.c -lssl

How to use pypy as a kernel in CPython Jupyter in windows?

大憨熊 提交于 2021-02-08 03:47:27
问题 I installed python using the Anaconda installer and am happily using the version of Jupyter that comes with it. I have also downloaded the (32-bit) windows version of pypy and that works fine from the command line. How can I get CPython Jupyter to use pypy as a kernel when running my python code? 回答1: Pypy doesn't need a different kernel, it can just use ipykernel. It thus isn't listed separately in the list of Jupyter kernels. You can use the same methods used for installing kernels for

Is there a way to get a reference to all the child windows or controls on an MFC dialog, given that I have a CWnd object referencing that control?

六月ゝ 毕业季﹏ 提交于 2021-02-08 03:44:34
问题 Lets say I have an MFC Dialog with several buttons on it. (E.g. "Red", "Blue", "Green", and "Yellow" buttons) These buttons all have IDs such as ("IDC_BUTT_RED","IDC_BUTT_BLUE","IDC_BUTT_GREEN","IDC_BUTT_YELLOW") Given that I have a CWnd object that references the dialog window that these buttons are placed on. Is there a way to get a list of these IDs? I know there is a CWnd::GetNextDlgGroupItem method, that based on the description should iterate through a group of controls. I tried using