windows-vista

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

◇◆丶佛笑我妖孽 提交于 2020-01-20 06:03:49
问题 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

How do I retrieve the version of a file from a batch file on Windows Vista?

拟墨画扇 提交于 2020-01-19 05:25:28
问题 Binary files have a version embedded in them - easy to display in Windows Explorer. How can I retrieve that file version, from a batch file? 回答1: and three ways without external tools 1. WMIC WMIC DATAFILE WHERE name="C:\\install.exe" get Version /format:Textvaluelist Pay attention to the double slashes of file name. Ready to use script: @echo off :wmicVersion pathToBinary [variableToSaveTo] setlocal set "item=%~1" set "item=%item:\=\\%" for /f "usebackq delims=" %%a in (`"WMIC DATAFILE WHERE

How do I retrieve the version of a file from a batch file on Windows Vista?

岁酱吖の 提交于 2020-01-19 05:25:05
问题 Binary files have a version embedded in them - easy to display in Windows Explorer. How can I retrieve that file version, from a batch file? 回答1: and three ways without external tools 1. WMIC WMIC DATAFILE WHERE name="C:\\install.exe" get Version /format:Textvaluelist Pay attention to the double slashes of file name. Ready to use script: @echo off :wmicVersion pathToBinary [variableToSaveTo] setlocal set "item=%~1" set "item=%item:\=\\%" for /f "usebackq delims=" %%a in (`"WMIC DATAFILE WHERE

Vista/win7 application volume control interface

馋奶兔 提交于 2020-01-15 09:51:33
问题 Which interface should I use to control the volume of my application on Vista or Windows 7? The programming language doesn't matter. 回答1: A brief history of the windows audio API's There are several volume control points in Vista/W7 You probably want to use the ISimpleAudioVolume interface 回答2: This here article/library did it for me. Import it and use ONELINER to set global application volume, which works with old style API that will work on XP and 7 as well. http://www.dreamincode.net

Convert 32 bit dll to 64 bit dll

泪湿孤枕 提交于 2020-01-14 07:12:09
问题 I have the 32 bit compiled dll when I try to use it in 64 bit application it fails to load, So I would like to convert the dll to 64 bit. Its working fine when the platform of the application changed from "Any CPU" or "x64" to "x86". But I want to use it under 64 bit, Since I am going to call the dll from ASP pages. Please help me out with this. 回答1: Windows CAN NOT load a 32bit dll into a 64bit process - this is a limitation that you can not circumvent. This means that if your 32bit DLL does

Convert 32 bit dll to 64 bit dll

会有一股神秘感。 提交于 2020-01-14 07:11:24
问题 I have the 32 bit compiled dll when I try to use it in 64 bit application it fails to load, So I would like to convert the dll to 64 bit. Its working fine when the platform of the application changed from "Any CPU" or "x64" to "x86". But I want to use it under 64 bit, Since I am going to call the dll from ASP pages. Please help me out with this. 回答1: Windows CAN NOT load a 32bit dll into a 64bit process - this is a limitation that you can not circumvent. This means that if your 32bit DLL does

Importing local file dir into SVN repo with TortoiseSVN

旧城冷巷雨未停 提交于 2020-01-14 03:21:10
问题 This is my first time trying to use any SCM so please bear with me. Following the SVN manual, I create a repo in an empty directory. All good. Then I try to import an existing project folder. I'm using the shell command but it's like this: Import C:\Users\aaa\SVN\proj to file:///C:/proj_2 Unable to open an ra_local session to URL Unable to open repository 'file:///C:/proj_2' Finished! I'm probably doing something very incorrectly. Thanks. 回答1: This is a quick and dirty trick but you can use

Desktop Window Manager capture the whole screen

冷暖自知 提交于 2020-01-13 17:09:15
问题 I was wondering if anyone could give me a starting point of how to capture the entire screen in Windows Vista/7? I know how to do it in previous versions of Windows, but would really like to keep everything in the D3D stack, without resorting to GDI/BltBit calls. I realize that you can get a live thumbnail of a given window if you have the HWND using the DWM API, but how do you get a "thumbnail" of the entire desktop? Thanks, Alex 回答1: Unfortunately, the functions to do this are in the dwmapi

What is PnPUtil.exe location in 64bit systems?

末鹿安然 提交于 2020-01-12 09:39:52
问题 I would like to install my USB device driver [.inf file] using PnPUtil.exe utility on both 32bit and 64bit systems for Windows Vista and Windows 7. I tested on my machine [Windows 7 32bit] and everything was fine because PnpUtil.exe is located in: C:\Windows\System32\PnPUtil.exe . But in 64bit Windows 7 the utility is not in this directory. When I tried installing driver on different Windows 7 - 64bit machine I could found PnPUtil.exe in this location: C:\WIndows\winsxs\amd64_microsoft

What is PnPUtil.exe location in 64bit systems?

扶醉桌前 提交于 2020-01-12 09:39:18
问题 I would like to install my USB device driver [.inf file] using PnPUtil.exe utility on both 32bit and 64bit systems for Windows Vista and Windows 7. I tested on my machine [Windows 7 32bit] and everything was fine because PnpUtil.exe is located in: C:\Windows\System32\PnPUtil.exe . But in 64bit Windows 7 the utility is not in this directory. When I tried installing driver on different Windows 7 - 64bit machine I could found PnPUtil.exe in this location: C:\WIndows\winsxs\amd64_microsoft