windows-vista

WinForms .NET 2.0: How to paint the proper sized icon?

做~自己de王妃 提交于 2019-12-08 06:22:28
问题 i have an ico file that contains a 48x48 and a 256x256 Vista PNG version (as well as the 32x32 and 16x16 versions). i want to draw the icon using the appropriate internal size version. i've tried: Icon ico = Properties.Resources.TestIcon; e.Graphics.DrawIcon(ico, new Rectangle(0, 0, 48, 48)); e.Graphics.DrawIcon(ico, new Rectangle(48, 0, 256, 256)); But they draw the 32x32 version blown up to 48x48 and 256x256 respectively. i've tried: Icon ico = Properties.Resources.TestIcon; e.Graphics

Delphi MainFormOnTaskBar Modal windows bug

陌路散爱 提交于 2019-12-08 04:44:54
问题 HI I'm using Delphi 2007 and have set the MainFormOnTaskBar property to true. The issue that I'm having is this. If you open a child window from the main form and then you show a message dialog from the child window you just opened. When you close the message dialog and then close the child window, the main form will be sent to the back of any other application you have on the screen. This happens under windows Vista and Windows 7. Does anyone know why this is happens and how can I fix it?

Getting absolute path from relative in Vista seems to fail using Win32/Shell PathCombine()

岁酱吖の 提交于 2019-12-08 04:43:27
Not sure if this is intended behavior or a bug or a wrong function that I'm using, but the problem is that PathCombine() returns a wrong path on a Vista box. The relative path is (as exported by the WMP to a playlist): ..\..\..\Public\Music\Sample Music\Amanda.wma The path it's relative to is: C:\Users\userX\Music\Playlists\playlist.wpl and PathCombine() returns: C:\Users\userX\Public\Music\Sample Music\Amanda.wma however, the file is actually located here (judging by the Explorer and the fact that I can't open it from the code): C:\Users\Public\Music\Sample Music\Amanda.wma Is this a known

Getting absolute path from relative in Vista seems to fail using Win32/Shell PathCombine()

眉间皱痕 提交于 2019-12-08 03:17:03
问题 Not sure if this is intended behavior or a bug or a wrong function that I'm using, but the problem is that PathCombine() returns a wrong path on a Vista box. The relative path is (as exported by the WMP to a playlist): ..\..\..\Public\Music\Sample Music\Amanda.wma The path it's relative to is: C:\Users\userX\Music\Playlists\playlist.wpl and PathCombine() returns: C:\Users\userX\Public\Music\Sample Music\Amanda.wma however, the file is actually located here (judging by the Explorer and the

Different versions of C++ libraries

人走茶凉 提交于 2019-12-08 02:45:55
问题 After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs fine on the original vista machine and other vista computers. However, moving it over to an XP box results in an error message: "The application failed to start because the application configuration is incorrect". What do I have to do so my compiled EXE works on XP and Vista? I had this same problem a few months ago, and just fiddling with some settings on the project fixed it, but I don't remember which

Cannot read config data from HKEY_LOCAL_MACHINE on Vista

空扰寡人 提交于 2019-12-08 02:18:38
问题 We have a Java Web Start application and are trying to store application configuration data using HKEY_LOCAL_MACHINE instead of HKEY_CURRENT_USER . We can get someone with admin rights to launch the app the first time and set the configuration, so that it will store the values in the registry successfully. Nevertheless, subsequent Vista users without admin privileges cannot seem to even read the values from the registry in HKEY_LOCAL_MACHINE . Perhaps our approach is incorrect, and there is a

User/password problems with GetVolumeNameForVolumeMountPoint() (Windows remote drive mount?)

无人久伴 提交于 2019-12-08 01:59:54
问题 From a Vista workstation, I have an attached XP Embedded computer on which I want to programmatically mount a volume locally (e.g., mount the XP Embedded \\MyXPEmbedded\C:\some\path\ to the Vista workstation (mounted to C:\mounted_XPEmbedded\ ). (This is an administrative utility that runs on the Vista workstation that maintains files on the XP Embedded workstation, which is part of a larger device.) I can see the XP Embedded computer from the Vista workstation. For example, I can :

How to use SetWindowsHookEx in Vista and hook Admin apps with UAC?

时间秒杀一切 提交于 2019-12-08 01:38:28
问题 I'm trying to figure out if there's a way to use SetWindowsHookEx and be able to affect apps that are run with Admin rights on Vista, with UAC enabled. This is an app that will need to add a small button to the caption bar of other windows to enable some multi-monitor-aware handling. I would have thought this couldn't be done, but I've seen one app that appears to do this. As far as I can tell, this other apps is not being run with Admin rights, and yet it can affect all apps in the system,

Issue with debugging Visual Studio 2010 solution that utilises FileDialog from the Vista API

╄→尐↘猪︶ㄣ 提交于 2019-12-08 01:31:53
问题 I have a WinForms C# Visual Studio 2008 (.NET 3.5) solution that is to be upgraded to Visual Studio 2010 (.NET to remain at version 3.5). This solution utilises the FileDialog from the Vista API for two reasons: When running the application in Windows XP, the expectation is to provide the user with a Windows XP look-and-feel file dialog. When running the same application in Windows Vista and 7, the file dialog is to have a Vista look-and-feel. More importantly our application allows a user to

How To Get My Solutions Into Windows Problemm Reports and Solutions

一世执手 提交于 2019-12-07 17:54:09
问题 Windows Vista added a Problem Reports and Solutions facility that records software problems, reports them to Microsoft, and then say they collect and make solutions to those problems available to users. So when my program hits a bug and crashes, the user gets an exception report: (source: beholdgenealogy.com) This then gets captured by Windows as one of it's problems. Every so often Windows warns the user that they've had problems and asks if they want to look for solutions. It brings up the