windows-vista

XDebug is not loaded in PHP (Vista, Apache Module)

北战南征 提交于 2019-11-29 15:40:39
问题 I downloaded php_xdebug-2.0.5-5.3-vc9.dll, added at the end of PHP.ini the following line: zend_extension_ts="C:/Program Files/php5/ext/php_xdebug-2.0.5-5.3-vc9.dll" When I use phpinfo(), xdebug is not loaded. When I run command "php.exe -m", it not loaded as well. How can this be resolved? My configuration: PHP 5.3.1, Apache 2.2.14 with Apache Module, OS: Windows Vista Both php and xdebug are thread safe. This is somewhat similar with: Apache not loading Xdebug, but does when started from

Getting volume change notifications on Vista/7 (C++)

青春壹個敷衍的年華 提交于 2019-11-29 15:18:04
问题 I'm trying to get notifications whenever the master volume changes on Windows Vista/7. This is the code I'm using: #include <audiopolicy.h> #include <audioclient.h> #include <mmdeviceapi.h> #include <endpointvolume.h> #include <windows.h> #include <shlwapi.h> #include <iostream> #include <Tchar.h> static const GUID AudioSessionVolumeCtx = { 0x2715279f, 0x4139, 0x4ba0, { 0x9c, 0xb1, 0xb3, 0x51, 0xf1, 0xb5, 0x8a, 0x4a } }; template <class T> void SafeRelease(T **ppT) { if (*ppT) { (*ppT)-

Running a WPF application on Windows XP

♀尐吖头ヾ 提交于 2019-11-29 14:42:10
问题 I recently built a new application using WPF, so that I can learn the new technology. Now that I am trying to deploy the application, it appears as if it is running fine on a Vista system, but on a Windows XP SP2 machine with the .Net fx 3.5SP1, it's not able to load the PresentationFramework.dll file. I did some further investigation into this and discovered that there is a slight build difference between the PresentationFramework.dll files on my xp test machines vs. what is on my Vista

Correct way to design around Windows UAC limitations?

久未见 提交于 2019-11-29 14:20:57
问题 I found out an application I wrote does not work properly under Windows Vista/7 if UAC is enabled at any level, because it writes files to the install directory of the program, defaults to "C:\Program Files\MyProgram." If UAC is disabled (or on any other version of Windows) it works properly - I read that UAC denies applications write access to the Program Files directory by default. My question is, well, how should I write my application so that it can be used without any "rights" needed at

Windows Vista: Unable to load DLL 'x.dll': Invalid access to memory location. (DllNotFoundException)

狂风中的少年 提交于 2019-11-29 11:38:50
I was testing on a customer's box this afternoon which has Windows Vista (He had home, but I am testing on a Business Edition with same results). We make use of a .DLL that gets the Hardware ID of the computer. It's usage is very simple and the sample program I have created works. The Dll is This from AzSdk . In fact, this works perfectly under Windows XP. However, for some strange reason, inside our project (way bigger), we get this exception: Exception Type: System.DllNotFoundException Exception Message: Unable to load DLL 'HardwareID.dll': Invalid access to memory location. (Exception from

django-admin.py is not working properly

♀尐吖头ヾ 提交于 2019-11-29 11:28:20
I have just spotted that something is wrong with my django-admin.py command. I checked similar SO posts on django-admin.py problems but nothing seems to be related to my problem. I use Windows Vista (yeah, I know...). I also have many versions of django in some folder on my disk and I switch to the version I need using junction command (this is similar to symlinking in unix), I don't have problems with this and never had problems before. I used django-admin.py many times before but now for some unknown reasons I got this info (Django 1.1.1): C:\>django-admin.py startproject some_project Type

Saving a file to Application Data in c#

元气小坏坏 提交于 2019-11-29 10:58:50
I used the following method to save a file to the folder Application Data in c# string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); Its working fine in windows XP, but i cannt find such a folder path i Windows vista. Where is this folder located in Vista and how can i save the file to this folder This should work out the folder for you in the background. Do you mean you don't know exactly where the file has been saved to? In Vista if you go to Run and type %APPDATA% that should bring up the Application Data folder and your file should be in there. The path is

How do I prevent programmatically the “Program Compatibility Assistant” in Vista (and Windows 7) from appearing?

十年热恋 提交于 2019-11-29 10:55:56
I develop a C++ program which might use adobe flash, although it is not essential. I use CoCreateInstance to create the flash object, and if it fails, I know flash is not installed so I don't use it. However, in Vista (and I think Windows 7 as well), when flash is not installed, after leaving the application, the "Program Compatibility Assistant" pops up a message saying that "This program requires a missing Windows component" specifying the flash.ocx. Is there a way to prevent this message from appearing? I don't want to force any user to install flash (especially since it's the IE ActiveX,

Animated “glow” in owner-drawn Progress Bar (ListView/DataGridView)

跟風遠走 提交于 2019-11-29 10:46:51
问题 I've noticed that the bog-standard ProgressBar in .NET 2.0 (Winforms) does show up as the fancy animated glowing bar in Vista; however, using the ProgressBarRenderer (as one generally has to when trying to draw a progress bar in an owner-drawn list view, grid view, or other such control) just gives the visual style without the pretty animation. I guess it was silly to expect that this would just magically work - I imagine the native control in Vista must have some sort of embedded timer or

Function for getting localized path?

孤人 提交于 2019-11-29 10:41:07
Windows 7 (and probably Windows Vista) display localized folder names using the LocalizedResourceName entry in the desktop.ini file. For my Documents folder, this looks like [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21770 IconResource=%SystemRoot%\system32\imageres.dll,-112 IconFile=%SystemRoot%\system32\shell32.dll IconIndex=-235 (see this question) This way the explorer displays the path "C:\Users\Username\Documents" as "C:\Benutzer\Username\Dokumente" on a german Windows. I wonder, if there's any build-in shell function to automatically get this localized