windows-xp

Roll 64-bit and 32-bit versions of an app into the same binary?

喜你入骨 提交于 2019-12-07 04:13:51
问题 We have an application we're trying to deploy on both 64 bit and 32 bit platforms. Is there a way to put both compiled versions of the code in the same binary, a la Apple and NeXT's fat binaries? Ideally we could ship one .exe that decides upon execution which version of the code to execute. We're targeting Windows XP and later. 回答1: One approach is perhaps to supply a bootstrapping application that determines the architecture and chooses the appropriate executable to run. So basically the

Google webfonts and windows xp

≯℡__Kan透↙ 提交于 2019-12-07 02:07:35
问题 My site is utilizing google fonts, and I'm having some issues with XP. Namely, because XP doesn't have anti-aliasing by default, all the fonts are pixelated, even in browsers like Firefox and Chrome. Is there a way to correct this issue, or are XP users just stuck with it? 回答1: use SIRF! we all hate flash but this is the only feasible solution. And this issue is not restricted to windows XP, its the same case with all windows platforms. Another option is to keep a text shadow of 1px 1px 1px

How can one batch file get the exit code of another?

戏子无情 提交于 2019-12-07 00:28:27
问题 I have two batch files, task.bat and runtask.bat . The runtask.bat calls task.bat and I would like runtask.bat to get the exit code of task.bat into a variable. How could this be done? task.bat: @echo off set errorlevel=1 runtask.bat ... CMD /C task.bat set taskexitcode=???? 回答1: Just swap CMD /C for call . task.bat: @echo off set errorlevel=15 runtask.bat call task.bat set taskexitcode=%errorlevel% echo %taskexitcode% Output 15 回答2: The accepted answer is correct, but if you are using call

Getting BIOS Serial Number without WMI

那年仲夏 提交于 2019-12-07 00:06:33
I'm attempting to get the serial number of the BIOS for a WinXP Embedded 32-bit system from a Win32 user mode application (MFC if that makes any diff). I'm trying to get the same serial number that you can get via WMI from the 'Win32_BIOS' class from member "SerialNumber." The problem is that I can't use WMI as this will have to run on older systems that don't have WMI installed. We basically have a series of machines with data encoded in this BIOS field so it can't be changed by the users, and we sometimes need this information to be output to a file and sent to us. I've found

Windows Installer (C#) error code 2869

↘锁芯ラ 提交于 2019-12-06 20:22:36
问题 I have a project, in VS 2005, which has a console application and a setup project associated to install the application. I also have an installer class in the console application that the setup project will use to do some validation before installation. Those tasks are checking the database connection string and checking some directory locations to make sure they exist prior to installation. I am getting an error code of 2869 when I try to install the application. All the code is written in C

Playback 24bit audio not possible

这一生的挚爱 提交于 2019-12-06 20:01:26
问题 I'm trying to play a 24bit audio file with my AutoHotkey app. It just uses SoundPlay. Windows 7 has no problem, however Windows XP users cannot play the 24bit files. The documentation says: All Windows OSes should be able to play .wav files. However, other files (.mp3, .avi, etc.) might not be playable if the right codecs or features aren't installed on the OS. Possible fixes mentioned in the article How to play 24bit WAV files in Windows Media Player are fixing the problem for Windows Media

The Icon property in the Window is crashing the application in Windows XP SP2

丶灬走出姿态 提交于 2019-12-06 19:52:22
问题 Suppose I have this: <Window stuff Icon="Resources\myicon.ico"> If I run the program on Windows 7, it's fine. If I run it on Windows XP SP2, it crashes. Removing the Icon property, it works fine on Windows XP, but then it doesn't have my myicon on the Windows 7 taskbar or on the Window. Also, setting the application icon on the VS project menu doesn't work for W7, but works for XP. In summary: <Icon> = broken XP, ok W7 No <Icon> = ok XP, ugly W7 VS project icon option = doesn't work for W7,

Batch Script - Count instances of a character in a file

↘锁芯ラ 提交于 2019-12-06 14:27:13
Using a batch script (.bat file) in windows xp, how would I go about reading a text file and finding how many instances of a character exists? For example, I have a string with the following: ""OIJEFJ"JOIEJKAJF"""LKAJFKLJEIJ""JKLFJALKJF"LKJLKFA""""LKJKLFJLKADJF I want it to count how many " there are in the file and return the count. Let's start counting the characters in a line. First the slow and clear method: set i=-1 set n=0 :nextChar set /A i+=1 set c=!theLine:~%i%,1! if "!c!" == "" goto endLine if !c! == !theChar! set /A n+=1 goto nextChar :endLine echo %n% chars found Now the fast and

Processes launched by a service can't allocate memory

佐手、 提交于 2019-12-06 13:46:08
This question was migrated from Super User because it can be answered on Stack Overflow. Migrated 8 years ago . I have a C# service running as the LocalSystem account which launches numerous other processes depending on what its needs are. This has been going fine for a few months. Just this week, some of the sub-processes are crashing. I've attached a remote debugger to them, and they're failing in memory allocations (C++ new operator returns 0x0), which is the indirect cause of the crash. Funny thing is, if I RDP into the machine, I can easily launch the process from CMD no problems. Yet

Visual Studio 2008 Constantly Freezes on Me

别说谁变了你拦得住时间么 提交于 2019-12-06 13:30:55
问题 If this isn't the right place, please move as necessary. This is REALLY affecting my production. I can't pinpoint when it started, but recently VS2008 has been freezing on me quite often. The freeze happens for 1-10 minutes. This seems to usually happen when I click into the source editor. The projects I am working on are ASP.NET MVC 2 projects with JavaScript and C# code. I do have Office 2007 installed and I ran the repair that I found was suggested somewhere on the web component, but that