windows-vista

Is it possible to build exe on Vista and deploy on XP using py2exe

一曲冷凌霜 提交于 2019-12-09 16:39:24
问题 I have created some program using python on Windows Vista. But I want to deploy it on Windows XP. Is it necessary to make new build on windows XP? Or there is possibility to make build that will work on both of these systems? EDIT (EDIT 2 - very simple program does not work also): My setup: from distutils.core import setup import py2exe setup(console=['orderer.py']) Using dependency explorer i checked that dependencies are: msvcr90.dll kernel32.dll +ntdll.dll Almost solved: I figured out that

Debugging javascript in Safari for Windows

时光毁灭记忆、已成空白 提交于 2019-12-09 14:02:22
问题 Is there a way to debug javascript using Safari 3.2 in Windows Vista? I found a link to a debugger named Drosera but I can't get it to work because the information seams to be outdated. 回答1: Well, apart from the Error Console that can be opened from the Develop menu (which in turn can be enabled in (Prefences / Advanced / Show Develop menu in menu bar) there aren't many javascript debugging options in Safari AFAIK. Still, the error console is quite useful as it shows javascript errors and

Pimp my UAC and a few questions about it

淺唱寂寞╮ 提交于 2019-12-09 06:12:51
问题 I have this application that need to do some things in protected paths (like %PROGRAMFILES%), I know that I should be using %APPDATA%, but I can't change that for now. I have isolated all the things that could require UAC to show up on another project, here's a sample code: using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; class Class1 { static void Main(string[] args) { try { File.CreateText(Path.Combine(Application.StartupPath, "something.txt")); } catch

Is there any reason for a blocking call to winsock send() function on Vista to return immediately?

混江龙づ霸主 提交于 2019-12-09 03:30:30
Is there any reason for a blocking call to winsock's send() function on Vista to return immediately ? It works with expected delay on XP and below. I'm wondering if this has got anything to do with auto-tuning feature of Vista. Code: char *pBuffer; // pointer to data int bytes; // total size int i = 0, j=0; while (i < bytes) { j = send(m_sock, pBuffer+i, bytes-i, 0); i+=j; } Thanks, Pavan The first possibility is that send() failed and returned SOCKET_ERROR. Your code cannot detect this, you really ought to fix that. The next possibility is that send() just doesn't block. Which is pretty

Ruby on Vista

泄露秘密 提交于 2019-12-08 19:55:19
问题 I installed Ruby and Ruby on Rails yesterday on Vista 32bit using the directions on this site: http://rubyonrails.org/down so I downloaded the installer, then Gems, then I downloaded rails with Gems. now I can't use the Gem or Ruby commands in the command line... so I assume there's something wrong with the environment variables, but I hav eno idea how to set them up in Vista or what to put. Can anyone help me with this? 回答1: To set up the environment variables, do this Fire up the start menu

.NET File.Exists doesn't work in Windows\System32\Drivers folder?

陌路散爱 提交于 2019-12-08 19:20:55
问题 The process is elevated and I ensured that the path was correct in VS debugger (I'm using Environment.GetFolderPath(Environment.SpecialFolder.System) not hard coding it in) but File.Exists still returns false. The reason I need this is a workaround for ensuring some 3rd party drivers are installed because their registry settings aren't removed on uninstall. I know writes are redirected via virtualization but is this also true for checking a file's existence? 回答1: Yes, virtualization happens

How to write a Kiosk application in Windows that has control from startup?

人盡茶涼 提交于 2019-12-08 12:31:01
问题 I'm not sure if this is technically a Kiosk, but it's basically the same idea. I have a program that runs full screen all the time from boot to shutdown to control a machine that the computer is hooked to. Right now I just have a shortcut to the exe in the Startup folder so it starts when the system boots up and logs in. Is there any better way to do this? I'd really like the user to never see the Windows environment (just the windows loading progress bar on boot) if at all possible, but I'm

.NET WPF Process.Start() not working on Vista and Windows 7

两盒软妹~` 提交于 2019-12-08 07:55:12
问题 I have WPF application. After testing my app on Windows7 and realized that opening help does not work. Basically to open chm help file I call: Process.Start("help.chm"); And nothing happens. I have also tried my app on Vista SP1, same result. I'm admin in both OS'es I have googled this problem, but have not found solution to it. Is there way to solve this problem? Have you experienced this types of incompatibilities. Thank You! 回答1: have you tried ShellExecute ? using System.Runtime

How to Run(launch) elevated command prompt programmatically in Vista

喜你入骨 提交于 2019-12-08 07:09:02
问题 I'm trying to install some files from a batch file (through code). However the command should only run as "elevated command" in Vista and Windows 7 Is there any way this can be done programitically? I'm launching the batch file by calling "CreateProcess" in VC++/MFC code. Thanks 回答1: ShellExecute(NULL, L"runas", ...); For whatever reason the "runas" verb isn't documented in MSDN but... 来源: https://stackoverflow.com/questions/1797695/how-to-runlaunch-elevated-command-prompt-programmatically-in

Why do my Borland C++Builder 5 forms with right-anchored controls appear incorrectly on Vista?

雨燕双飞 提交于 2019-12-08 06:53:03
问题 Having spent a small age looking for the solution and having now found it, I figured this would be good to document for Stack Overflow. So my answer will follow right after this question. I was using Borland C++ Builder 5. This probably also applies to the equivalent version of Delphi. I had a form with a TButton on a TPanel. The button was set to akRight,akBottom. On XP and prior Windows, everything was fine. On Vista, using Aero, the button appeared 4 pixels too far to the right. The