windows-7

redirect any user input to a separate underlying program

微笑、不失礼 提交于 2019-12-11 13:11:16
问题 This is my virgin post so please go easy on me ! I am writing a program in C# which I want to run maximized and always-on-top. The app will be translucent so that a user can still see everything that's going on behind my maximized application. I am aiming to achieve a scenario where a user can (despite my app having focus) still interact as normal with all other running programs - as if it was a piece of coloured glass which merely redirects all user input to another intended application, eg

What path to enter in PyQt QIcon.setThemeSearchPaths() in pyqt on win7?

怎甘沉沦 提交于 2019-12-11 13:05:10
问题 As is written in the docs I would like to edit setThemeSearchPaths() as from current code: if __name__ == "__main__": app = QtGui.QApplication([]) for path in QtGui.QIcon.themeSearchPaths(): print "%s/%s" % (path, QtGui.QIcon.themeName()) it prints out: C:/Python27/icons/ :/icons/ And no icons are found. I would like to ask you what path do I have to pass as input argument in function setThemeSearchPaths() on win7? As I found out the icons should be on path/file: C:\Windows\system32\imageres

What are the best JVM settings for Eclipse on windows 7 64 bit?

心已入冬 提交于 2019-12-11 13:03:26
问题 What's the best settings for Eclipse 3.5.2 on Windows 7 64 bit? I've read What are the best JVM settings for Eclipse?, but nowhere 64 bit system was mentioned. Eclipse 3.5.2 runs pretty slow on my 8GB windows 7 64 bit box. Thanks in advance! David 回答1: I've had to use compressed oops when running eclipse on 64 bit operating systems in general. See Ismael Juma's blog post on the subject. For Sun JVMs this means adding -XX:+UseCompressedOops to your JVM args in the eclipse.ini. 回答2: Start by

How do I programmatically open the “Libraries” folder in Windows Explorer in Windows 7?

只愿长相守 提交于 2019-12-11 12:38:17
问题 Note, the user may have redefined the default window for windows explorer, so simply opening "" using Process.Start or IShellDispatch.Open is not going to be acceptable. I figured this would be trivial, but I've lost a day trying to find an example. Note, the Libraries folder is a known folder with a folder id of FOLDERID_Libraries . Opening up using the associated GUID for FOLDERID_Libraries using Process.Start("explorer.exe", "::{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}") opened "My Documents"

ssh: connect to host github.com port 22: Network is unreachable after copying VM to another host machine

大憨熊 提交于 2019-12-11 12:35:53
问题 I have just copied my Vagrant VM from one host machine to another. Both machines are running Windows 7. One the machine I copied the VM to I get the following error when attempting to access Github. The repo definitely exists and I have the exact same Git config on the original machine. Why would this happen? The top SO answer for this error has no effect for me. [vagrant@localhost /var/www/wrestlemaniamainevent]# git remote -v origin git@github.com:crmpicco/wrestlemaniamainevent.git (fetch)

Undefined reference to (error) in C++ Eclipse but working in Visual Studio 2015

泪湿孤枕 提交于 2019-12-11 12:17:59
问题 I am trying to integrate AMPL with C/C++ using AMPL-API on Windows-7 in Eclipse Mars 2.0. I created a Makefile project in Eclipse which uses MinGW CC to compile the firstexample code given in their example directory. firstexample.cpp: #include <iostream> #include "ampl/ampl.h" using namespace std; int main() { ampl::AMPL ampl; // Read the model and data files. std::string modelDirectory = "models"; ampl.read(modelDirectory + "/diet/diet.mod"); ampl.readData(modelDirectory + "/diet/diet.dat");

Windows 7 - Eclipse now needs me to run as administrator

让人想犯罪 __ 提交于 2019-12-11 12:11:54
问题 I installed Eclipse (Kepler) on this W7 64-bit machine and initially I could run it "normally" by just clicking the desktop icon or whatever. Then I replaced the whole "workspace" directory with one from another machine (because I'm changing systems). Now if I run Eclipse not "as administrator" it opens and will even run apps... but nothing can be saved, including changes to files and updates to the .metadata of any kind. I changed all the "ownership" and "permissions" which could possibly be

Any reason I'd get a NullReference exception on Windows 7 only?

微笑、不失礼 提交于 2019-12-11 11:14:50
问题 My C#, .NET 4, app runs fine on XP (media centre to be exact - don't ask). On Windows 7, it installs fine, but immediately borks. It complains about a NullReferenceException in the callback of a background worker. (I'd love to give you more information, but short of installing VS on the target machine, this is all I can get.) So, anything I should know about deploying to Windows 7? Edit: As requested, here's a better description of what's going on... When the main form of my app initialises,

How can I distinguish between “Close All Windows” and “Close” individual windows in MFC with Windows 7?

泪湿孤枕 提交于 2019-12-11 11:12:21
问题 I am using Visual Studio 2005 with MFC and Windows 7. I have an application with many dialog windows. I use OnSysCommand to check for SC_CLOSE messages and check the lParam to determine if this is initiated from the task bar or the close button on the dialog. But how can I determine whether a close message is a "close all windows" from the task bar or just closing an individual dialog from the task bar? Thanks 回答1: I don't think that you get this solved with a single message. When you Close

dpinst.exe behaviour in windows 7 with standard user privilege

本秂侑毒 提交于 2019-12-11 11:08:00
问题 I'm using dpint.exe in my driver package. I'm facing the below mentioned scenario's in Windows 7 64 bit os. When UAC Enabled, It works as expected in admin mode( user with admin privileges ) , standard user mode and in guest mode. ( i.e., promts a window asking for admin password in standard user mode and guest mode ). When UAC is disabled, In Admin mode ( user with admin privileges ) it "never" shows any windows saying "Do you want to allow the following program to make changes to this