3
голосов
3ответов
3135 просмотров

Is it possible to run an application as Administrator from the Delphi IDE

I am trying to debug an application in Delphi 2007 on a Vista machine. The application was originally written for XP so it must be run with administrator privileges. I know that I could put some information into the manifest or update the code but I am looking for a quick fix that can be used i...

6
голосов
1ответов
4373 просмотров

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

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...

0
голосов
1ответов
633 просмотров

Visual Studio 2008 - Focus on textbox doesn't work when run from VS2008 as admin

This is a minor, esoteric problem and not a showstopper, but I'm wondering what other VS2008 idiosyncrasies are out there. If you make a web app, add a textbox and run a focus function for the textbox on page load, it works when you run VS not as administrator from a Vista non-administrator acco...

0
голосов
2ответов
785 просмотров

Corruption in the network stack

What could cause WireShark to show (example) 'xxxxxxxxxxx' on the sending machine, and then show 'xxxxxxxxxii' on the receiving machine? Note that it's not WireShark showing wrong data, the data is actually corrupted when it arrives, causing our TCP/IP protocol to get out of sync. This is not t...

3
голосов
3ответов
1117 просмотров

Launching a service from msi installer that depends on assemblies installed by the msi

I'm using WiX to write a MSI installer to start a service that depends on DLLs installed by the MSI. On Vista, the DLLs become added to the global assembly cache in the MSI's InstallFinalize phase, so I can't use the built-in service starting command in WiX. That one tries to start the service be...

6
голосов
2ответов
8589 просмотров

Saving a file to Application Data in c#

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 a...

1
голосов
3ответов
969 просмотров

How to read NMEA sentences in windows Vista using c++

I have a GPS device connected to my system which is running Windows Vista. I wanted to read the NMEA sentences from GPS device and print on screen. How I will come to know, on which port the GPS device has been connected, as there can be other devices also connected on various com ports. I am d...

3
голосов
1ответов
2422 просмотров

Why CreateProcessAsUser requires interactive window station on Vista/Windows 7?

I had to delve into this because the code that worked fine on Windows 2003/XP doesn't on Windows 7. Application launched by the use of CreateProcessAsUser fails with 0xc0000142 error code. The difference between my old code and one available from MSDN at Starting an Interactive Client Process in ...

26
голосов
5ответов
2603 просмотров

As a developer, how should I use the special folders in Windows Vista (and Windows 7)?

Where should I save data related to my application? Where should I save configuration files? Where should I save temporary files? Should I do it in "Documents"? "AppData"? Etc... What is the best practice for saving data to the disk (I guess, best practice for special folders?!)?

0
голосов
2ответов
681 просмотров

I found this Reboot Vista.vbs script. Can you help with it?

Found this Reboot Vista.vbs script on a number of forums. Seems like the whole post ( text including the code ) was posted on many forums. So I don't know who the original author is. Heres the code here: Option Explicit On Error Resume Next Dim Wsh, Time1, Time2, Result, PathFile, MsgResult, Msg...

0
голосов
1ответов
255 просмотров

Error in installing wince application via activesync on vista sp2

I have created an installer for my wince application by following the instructions on this site http://msdn.microsoft.com/en-us/library/aa446504.aspx. And it worked fine on windows xp. But when I tried to install this using windows vista sp2, there is an error that says "Error 1001. An exception ...

0
голосов
3ответов
335 просмотров

How to show Confirm Dialog under Vista with C#?

I need to set a register key in vista but if I use the commands without running as Administrator it throws an exception. How do I show the confirmation dialog, then?

5
голосов
3ответов
2119 просмотров

How to Save a setting for All users under Vista

I need to save a setting which is then available to all users of the application on the given machine. It needs to work on Vista/Win 7, and the application won’t be started as administrator. Can’t Save to program directory as the Program Files folder is protected on Vista Can’t save to HKEY_LOC...

0
голосов
1ответов
1456 просмотров

Invalid Class String Error when creating C++ Project in Visual Studio 2008 with Vista x64

After going through this Problem (connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=329986) that was related with registry permissions, now again, Visual Studio comes with another error. I have the same error as this guy, I have searched all the internet and it seems nobod...

1
голосов
1ответов
847 просмотров

Javascript Error while opening Infopath templates from within .Net webbrowser control on 64-bit Vista machines

We have some browser enabled Infopath 2007 templates hosted on Windows Sharepoint server (Windows 2003 machines). We use a couple of 'Rich Textboxes' in these templates and these templates are made available to the end user via .Net windows application that used the WebBrowser control. The appl...

2
голосов
1ответов
1213 просмотров

Access to external window handles

I am having a problem with the program I am currently working on. It is caused by the increased security in vista/Windows 7, specifically the UIPI which prevents a window with a lower integrity level 'talking' to a higher one. In my case, i am wanting to tell the window with a high Integrity lev...

6
голосов
5ответов
3024 просмотров

Adding registry key in C# shows when I read it back, but not in regedit

I am adding a registry key using the following code: var key = Microsoft.Win32.Registry.LocalMachine.CreateSubKey(key); Within my code I can read back the value find, even in between runs. However, the key never shows in regedit and the other program that should be reading the key can't see it...

1
голосов
1ответов
1075 просмотров

Access is Denied loading a dll with ctypes on Vista

I'm having issues with using ctypes. I'm trying to get the following project running on Vista. http://sourceforge.net/projects/fractalfrost/ I've used the project before on Vista and had no problems. I don't see any think changed in svn that cause this I'm thinking it's something local to thi...

0
голосов
3ответов
54 просмотров

Sql performance on vista machine client

I have an application written in a language called magic. This application uses MSSQL Server. When it is deployed where the client is on vista machine, and the server is on a remote machine, the performance is dramatically degraded. When that same application is used from an XP client, with the d...

7
голосов
2ответов
4328 просмотров

Python sqlite3 "unable to open database file" on windows

I am working on a windows vista machine in python 3.1.1. I am trying to insert a large number of rows into a SQLite3 db. The file exists, and my program properly inserts some rows into the db. However, at some point in the insertion process, the program dies with this message: sqlite3.Oper...

0
голосов
1ответов
70 просмотров

How to infer debug information from Alternates Panel output in WSR

I have this Windows Speech Recognition (WSRMacro) script which compounds multiple words that are spoken into a single word: "Happy children" -> "Happychildren" However, a bug in the script appears under certain circumstances and I do not know how to deduce what the problem is. Although the ...

5
голосов
3ответов
5817 просмотров

UDP multicast using winsock API differences between XP and Vista

It seems to be that the implementation required to set up a UDP multicast socket has changed between windows XP and windows vista. Specifically: Under windows XP, you must call bind() before you can reference any multicast-specific socket options. However, under windows vista, you must not call...

1
голосов
1ответов
1023 просмотров

Windows API to make Windows Vista and 7 semi-transparent screenshots

Windows Vista and Windows 7 display semi-transparent forms when Aero is activated. And some screen-taking applications such as WinSnap or Windows Clippings are able to capture those windows as a semi-transparent PNG image. What Windows API are they using to obtain such a beautiful capture ?

1
голосов
1ответов
769 просмотров

Need help with Windows Speech Recognition script to compound a string

The command below for Windows Speech Recognition forces the speech recognition engine to use literal text (""all seventy six people paid five dollars") instead of the default ("all 76 people paid $5"). I'm trying to adapt this command to remove the spaces between words so that I could program us...

7
голосов
3ответов
4944 просмотров

GetThreadId on pre-vista systems?

Apperantly, GetThreadId is a Vista API. How can I get a thread's id on pre vista systems?

3
голосов
4ответов
7008 просмотров

How do you retrieve the tags of a file in a list with Python (Windows Vista)?

I want to make something of a tag cloud for various folders I have, but unfortunately, I can't seem to find a way to access the tags of a file in Windows Vista. I tried looking at the win32 module, and os.stat, but I can't seem to find a way. Can I get some help on this?

1
голосов
2ответов
2696 просмотров

Ugly WPF text rendering - can't disable hardware acceleration on Vista

I'm experimenting problems with text rendering in WPF (third party applications and mine too). Labels and other text don't display correctly, look a little blurred and are rendered with some random colored pixels around. I'm working on a low end crap machine (SiS Mirage 3 graphics) with Vista SP...

0
голосов
1ответов
1190 просмотров

NSIS InstallDir in Vista / XP

I created installer via NSIS. "c:\program files\myapp" is default folder for my application. But I need another default folder (for example c:\users\\AppData\myapp) in Windows Vista. I found lot of Functions to determine Windows version, but I cannot call them before defining InstallDir variable...

2
голосов
1ответов
3452 просмотров

Windows Vista/7 Programmatically login

Is it possible to create a service or application which can programmatically log a user in when windows(vista/win7) starts up.... if a user has a token eg biometrics or smartcard

5
голосов
1ответов
90 просмотров

How can I determine why the machine came out of suspend?

I'd like to be able to determine, programmatically, why a Vista system came out of standby (S3). Any language is fine, though a .NET one would be best. I'm looking to put this code into an application that I'm working on. I'm looking for reasons like "Media center wanted to record a program," ...