windows-vista

Text to speech in Vista

冷暖自知 提交于 2019-12-04 07:46:12
I did it by creating OLE object with Delphi in 2000/NT/XP as following: Voice := CreateOLEObject('SAPI.SpVoice'); Voice.speak(...) But this does not work in Vista, how can I make my program simply speak some text in Vista? François I just tried (D2009 on Vista Home Premium) with the following code and it works! unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComObj; type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; var

.NET Embedding application in windows-taskbar

和自甴很熟 提交于 2019-12-04 07:38:04
We've all seen it and now I want to do it. How may I go about achieving this effect with a winforms application? alt text http://www.activewin.com/winvista/images/Windows%20Media%20Player%20-%20Taskbar%20Player.png You are probably going to want to start reading about Desk Bands . It's not an easy process, and you won't be able to just put your winforms application in the task bar. It also depends on what version of Windows you want to target, as tommieb75 pointed out, the newer versions of windows have better integrating capabilities. In addition to the above, the Windows v6.1 SDK includes a

Unable to attach to the process

Deadly 提交于 2019-12-04 07:36:47
I am trying to debug a service in VS 2005 running. Service is running under SYSTEM username. I have opened VS as administrator. The error I am getting is: Unable to attach the process. The system cannot find the file specified I am running on Windows Vista. Maybe the program you are trying to debug is using admin privileges but visual studio doesn't have admin rights. run visual studio as administrator, even if you are logged in as administrator it doesn't automatically have admin privileges. you can do this quickly by right clicking on the short cut of Visual Studio and click Run as

IIS does not list a website that matches the launch url

大憨熊 提交于 2019-12-04 07:35:20
问题 I need to debug the website i 'm developing (ASP.NET MVC3, Razor, .NET 4, VS2010 SP1 (as administrator)) in IIS7 (Vista Home) and getting the error: IIS does not list a website that matches the launch url. To test if it has to do something with the settings of the app, i did create from scratch an empty new ASP.NET MVC3 website, set for IIS, created virtual directory, launched with F5 and i worked fine! I again did create a second website project with the exact same settings (just to be sure)

Simulate Control-Alt-Delete key sequence in Vista and XP

こ雲淡風輕ζ 提交于 2019-12-04 07:07:30
Can I simulate in C#/C++ code Control + Alt + Delete sequence in Vista? When UAC enabled/disabled? How it is done in XP? Can you provide a code sample that works in Vista? Existing code to simulate the Secure Attention Sequence (SAS), which most people refer to as control alt delete or ctrl-alt-del, no longer works in Windows Vista. It seems that Microsoft offers a library that exports a function called SimulateSAS(). It is not public and one is supposed to request it by sending a mail to saslib@microsoft.com. There is a similar library available with the following features: Works both with

Can a program write to the root directory of a disk when UAC is turned on without having admin privileges?

江枫思渺然 提交于 2019-12-04 06:38:08
问题 If I am not an Administrator and start a program which writes to C:\ some textfile - will I need admin rights...in Windows 7 or Vista? I see in XP there are no problems to write to any folder including system32 - but I am not sure if a program in say .NET will be able to do that without admin permissions. 回答1: That depends on whether C:\ is a filesystem that supports permissions, and if so on the permissions set on the root directory, which can be modified by users with the correct privileges

Why is console output so slow?

依然范特西╮ 提交于 2019-12-04 04:50:01
So I have noticed this while using a few differnt languages on Windows XP, Vista and 7. If you dump a couple thousand lines a second to the console window it generally has a negative impact on the performance of the system. Computer are fast, and always faster, and the console looks like just some text on a back ground. Where is the bottle neck? printf etc has to go from your process with some sort of IPC to the Console window process (csrss or conhost) The console can also be shared with several processes so there is also some synchronization and buffering going on. 来源: https://stackoverflow

Is there a way to get a local timestamp in my IPython prompt?

谁说胖子不能爱 提交于 2019-12-04 04:22:37
问题 Is there a way to get a local timestamp in my IPython prompt? I'm using IPython 0.10 and Python 2.6 on 64-bit Windows Vista. My current default prompt is [C:Python26/Scripts] |9> OK, I tried to follow your directions exactly. However, my experience has been that all config editing is best kept to my ipy_user_conf.py . To quote from it: User configuration file for IPython (ipy_user_conf.py) This is a more flexible and safe way to configure ipython than *rc files (ipythonrc, ipythonrc-pysh etc.

Programmer's understanding of Memory in the Vista Windows Task Manager

蓝咒 提交于 2019-12-04 04:10:36
I know a fair bit about the Windows Task Manager in XP, but I would like to understand it better in Vista. What is the difference between "Working Set (Memory)" and "Memory (Private Working Set)". What is the Paged Pool, what is the NP Pool (Non-Paged?). How do I use these to determine what is going on with memory usage? As an aside, when you minimize a program it frequently returns 90% of the memory it is using. Is there any way to do this without minimizing it? This MSDN blog entry might be informative on the first part of the question. A brief excerpt: Working set is the subset of virtual

How do I control my application's name in the UAC dialog?

久未见 提交于 2019-12-04 03:47:06
I would like to control the name of my application as it appears in the UAC dialog. Right now it shows up as something like "MyCompany.MyApp.exe"; I would prefer something like "MyApp Pro". In other words, I would like a short, friendly phrase instead of the raw EXE file name. I noticed that MMC.EXE appears in the UAC dialog as "Microsoft Management Console", so it seems to be possible. But how? There must be a build setting somewhere that controls this, I just can't seem to find it ... Edit: The app is digitally signed. Paul Lalonde After some experimentation, I've found that providing a /d