windows-xp

Find out running on XP embedded

ぐ巨炮叔叔 提交于 2019-12-11 08:31:04
问题 Is there a way to find out if my program is running on XP embedded? I've tried .NET System.Environment.OSVersion, but the version information looks like that of a "normal" Windows XP, except for the minor version number, and relying on that seems to fragile to me. 回答1: A Microsoft eMVP (Bing Chen) on Egg Head Cafe suggests GetVersionEx and a particular version registry key... 1. Call API BOOL GetVersionEx(LPOSVERSIONINFO lpVersionInfo); OSVERSIONINFOEX structure (which is the output of this

How can I get rid of ft2font import error from matplotlib on a Windows XP source installation?

。_饼干妹妹 提交于 2019-12-11 08:28:13
问题 So today I tried building matplotlib from source (git clone) on a Windows XP box. First I downloaded and compiled the dependencies (zlib, libpng, freetype2) as per this blog entry. I then edited setup.cfg to make the matplotlib installation aware of the installations of the dependencies. Lastly, python setup.py build and python setup.py install ran without any errors. But when I try a simple script for a sample plot, I get this error: File "C:\Python27\lib\site-packages\matplotlib\font

ETW File IO Monitoring on XP/2003

半世苍凉 提交于 2019-12-11 08:26:50
问题 I've been investigating ETW for process/file/registry/network monitoring. It looks like it on Win7 it has everything I need. However, on XP it seems to be lacking the same level of detail. Specifcally, with file IO only "FileCreate" events seem to be logged and process creation events don't give a full path. Is it possible to determine when a file is written to on XP with ETW? And how about the full path to a process start event? 回答1: Starting with Vista MS added a lot of ETW providers to

Ruby DevKit not working for RedCloth and other gems on WindowsXP

妖精的绣舞 提交于 2019-12-11 08:06:56
问题 I'm a completely new to RoR and don't have much web development experience. I usually give up at this point, but I need a RoR dev environment for a job and I can't pick the brain of the site's creator because he's someone outside of the company and made it clear that he's completely unfamiliar with Windows (he develops on a mac and I'm starting to see why...). This is my first time posting so be kind... Goal: Be able to view a RoR based site on local machine, preferably using a pre-existing

Change playback device programmatically xp

旧城冷巷雨未停 提交于 2019-12-11 07:44:39
问题 How can i change which is the current sound card in use (xp), without going into control panel>sounds devices> choose playback device. any language would suffice, or batch file, just that i have to change the device for playback about 50 times a day and its a pain having to load control panel each time. How? 回答1: To set the default sound playback device in Windows XP, you can change the value of the following registry key: HKEY_CURRENT_USER\Software\Microsoft\Multimedia\Sound Mapper\Playback

Unpredictable results from os.path.join in windows

风流意气都作罢 提交于 2019-12-11 07:07:17
问题 So what I'm trying to do is to join something in the form of os.path.join('C:\path\to\folder', 'filename'). **edit : Actual code is : filename = 'creepy_%s.pcl' % identifier file = open(os.path.join(self.cache_dir, filename), 'w') where self.cache_dir is read from a file using configobj (returns string) and in the particular case is '\Documents and Settings\Administrator\creepy\cache' The first part is returned from a configuration file, using configobj. The second is a concatenation of 2

how to increase the input line length(max) in windows?

泪湿孤枕 提交于 2019-12-11 06:39:23
问题 in my one batch file i set a variable, after running this batch file it shows the error "The input line is too long." how to overcome from this problem. or it is possible to increase the input line length(max) in windows? 回答1: As per my comment, to delimit a line in a batch file, append the ^ character to the line. Eg: somelong command ^ carries on here ^ and finally ends here This will behave as 1 line. Not however if this will overcome the input length limitation. 来源: https://stackoverflow

SQL compact 4 exception

不羁的心 提交于 2019-12-11 06:37:27
问题 I have a windows form application written in C# and running on a Windows XP machine with SQL compact 4 database. The operating system language is simplified chinese. I'm facing a strange exception. "The specified locale is not installed on this machine. Make sure you install the appropriate language pack. LCID 1053" Why? The application does work ok on all other configurations/languages. 回答1: That is the locale for Sweden. You can change the locale by modifying the connection string: http:/

How to Avoid `msvcrt.dll` Compiling with MinGW64?

点点圈 提交于 2019-12-11 06:35:28
问题 I have some C++ code that I compile to various platforms, namely Linux 32/64 bits, Windows 32/64 bits. For the Windows part, I use the latest gcc compiler provided by mingw-w64 package. The trouble I am having is that the 32-bit compilation drags the libc API that Microsoft provides through msvcrt.dll, and that DLL has some problems: is not distributable (it comes with Windows and is not replaceable) has versions (every Windows version has a different one, with added functionality) it depends

Double backslash not work?

泪湿孤枕 提交于 2019-12-11 06:28:28
问题 does anybody have idea why some windows XP installation would not evaluate path with double backslash in them? Error is found on some XP (same build, patches, unknown more details). In most everything works, on some PCs following doesn't work: Querying path (registry or folder) with functions like RegEnumKeyEx, fopen fails if path contains two backslashes, for example C:\\test\hello.txt . strPath = "\SOFTWARE\Microsoft\Windows\Currentversion\run" // works strPath = "\SOFTWARE\Microsoft