windows-7

What is the difference between ProgramData and AppData?

二次信任 提交于 2019-12-17 15:32:39
问题 I need to store some user-specific configuration data for my program. Both Application Data/AppData (in the user's directory) and ProgramData (in the root of the system drive) seem like reasonable places to put it. What is the difference between Program Data and Application Data and which should I use? 回答1: To put it straight, ProgramData contains application data that is not user specific .This data which will be available to all users on the computer. Any global data should be put in here.

ld.exe: cannot open output file … : Permission denied

为君一笑 提交于 2019-12-17 15:28:07
问题 I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped. I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into a hurdle. The program compiles, links and whatnot like a charm and I get a corresponding executable which runs as expected. The problems occur if I try to compile again, then I get the following: c:/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../

Windows 7 php + Symfony2 terribly slow

狂风中的少年 提交于 2019-12-17 15:24:42
问题 This is an issue I've been having for a long time. I want to run PHP applications on my windows computer and it has a terribly high load time, around 10-25 seconds. I have tried many things: First I tried a simple XAMPP installation I read WAMP might be faster, so I tried WAMP, too. It gave me the same results Then I installed an nginx server with PHP, but it did not help either Finally, I installed an Ubuntu 11.10 in VirtualBox and I shared my windows files containing my project, but the

Can we get the UAC prompt to show only once?

感情迁移 提交于 2019-12-17 14:51:35
问题 Is there a way for an app to present the user with the UAC prompt only once, upon first running. Thereafter, no further prompting. In other words, I understand that our app needs the user's UAC permission to do certain things. And that's fine. But we don't want it to have to keep asking on every occasion it runs. Can the user give permission to our app for all time? Or does what I am asking violate the fundamentals of UAC? We are working with .NET and Windows 7 回答1: The answer to your

C# setting screen brightness Windows 7

﹥>﹥吖頭↗ 提交于 2019-12-17 12:37:44
问题 I want ajust screen brightness by my self. Because Windows lets me only adjusting in limited range. I want dim the display from 0 to 100% and turning it off/on. It should be possible if windows can it do automatically (Dim display after: x minutes/Turn off display after: x minutes). I tried some sources and classes what I found by google. But no of them works. Have you ever tried this or can you recommend me any working code? Thanks for responds. 回答1: You can use the WmiSetBrightness method:

Installing pythonstartup file

帅比萌擦擦* 提交于 2019-12-17 10:58:49
问题 How do I install the pythonstartup file so that it runs on command like python myfile.py ? I tried to install it into my /home/myuser directory for Ubuntu, but it said that I had insufficient permissions. Furthermore, different places say alternately that it should be in all caps or in all lower case with a period before it. The Python command line guide does not seem to explain where to put the file, or how to change which environment variable to 'point' to it. 回答1: In your ~/.bashrc :

Screen.AllScreen is not giving the correct monitor count

时光总嘲笑我的痴心妄想 提交于 2019-12-17 10:55:22
问题 I am doing something like this in my program: Int32 currentMonitorCount = Screen.AllScreens.Length; if (currentMonitorCount < 2) { //Put app in single screen mode. } else { //Put app in dual screen mode. } It is VERY important my application recognizes how many monitors are currently connected. However, after I plug/unplug the monitor a couple of times, Screen.AllScreens.Length always returns '2'. My monitor knows it's not connected (it has entered 'power save' mode), and the control panel

http://localhost/ not working on Windows 7. What's the problem?

[亡魂溺海] 提交于 2019-12-17 10:47:13
问题 I have a big problem opening http://localhost/ on Windows 7 (beta). I installed this os and everything went great; when I installed Wamp I saw that localhost is not working at all. I just see this error: Failed to Connect Firefox can't establish a connection to the server at localhost. in Mozilla and Explorer. I removed Wamp and after some weeks (that means two weeks from today) I installed NetBeans on Windows 7. I created a test PHP script and when I debug it, I get the same error again. I

How to install ImageMagick to use with PHP on Windows 7 (3)

青春壹個敷衍的年華 提交于 2019-12-17 10:29:33
问题 There are other threads about how to install Imagick on Windows 7 but no help for me so far. :( (Maybe problems have came up with more recent versions) I have followed these steps to install: Download and install ImageMagick http://www.imagemagick.org/download/binaries/ImageMagick-6.8.8-1-Q16-x86-dll.exe Download php_imagick.dll and copy to extension dir (c:\xampp\php\ext) http://www.peewit.fr/imagick/php55/vc11/x86/ts/php_imagick.dll Edit php.ini file and add new extension (c:\xampp\php\php

What's the upper limit on GDI objects for one process in Windows 7?

梦想与她 提交于 2019-12-17 09:43:45
问题 Have an application with a GDI leak that will eventually hit 10,000 allocated GDI objects and crash. I tried increasing the GDIProcessHandleQuota to 20,000, but the program still crashed when it reached 10,000 objects. We're currently working on patching this leak, but out of curiosity--is there a way to increase the GDI limit for a single process? Or is 10k an individual application's hard limit? 回答1: There is a solution that might work. I deal with a misbehaved vendor's app here that