windows-xp

Different versions of C++ libraries

爷,独闯天下 提交于 2019-12-06 05:52:39
After compiling a simple C++ project using Visual Studio 2008 on vista, everything runs fine on the original vista machine and other vista computers. However, moving it over to an XP box results in an error message: "The application failed to start because the application configuration is incorrect". What do I have to do so my compiled EXE works on XP and Vista? I had this same problem a few months ago, and just fiddling with some settings on the project fixed it, but I don't remember which ones I changed. You need to install the Visual Studios 2008 runtime on the target computer: http://www

`marshal data too short` error message while installing watir-webdriver on Windows XP

自作多情 提交于 2019-12-06 05:45:22
问题 I have a clean installation of Windows XP (Professional, Version 2002, Service Pack 3) in VMware Fusion virtual machine (3.1.2 332101). (Host machine is MacBook Pro, Mac OS 10.6.7.) XP installation has 512 MB RAM and is fully updated, except I left Internet Explorer at version 6. I have installed Ruby and RubyGems: C:\Documents and Settings\zeljko>gem env RubyGems Environment: - RUBYGEMS VERSION: 1.6.2 - RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] - INSTALLATION DIRECTORY:

How to know and load all images in a specific folder?

痞子三分冷 提交于 2019-12-06 04:47:09
问题 I have an application (C++ Builder 6.0) that needs to know the total of images there are in a specific folder, and then I have to load them: in an ImageList or in a ComboBoxEx... or any other control... How can I do that? I know how to load an image in a control, or to save in a TList, or in an ImageList... but How to know how many files files there are in the directory, and how to load every image in it?? I am Sorry about my English. 回答1: I did something like this yesterday with C++ using

What .NET framework “shipped” with Windows XP

允我心安 提交于 2019-12-06 04:12:42
Could you tell me what .NET framework installed by default on Windows XP system? Because I wanted to write a C# application that does not require anything else to be installed. If none is there any way not to force users to download .net framework (for example 3.5) but install it? Windows XP did not come with any version of the .NET Framework. You can distribute the .NET Framework 3.5 redistributable with your app. Get it here . Depending on the setup mechanism of your app, you will be able to set it as a dependency of your app's executables so that it's installed automatically for your users.

How to develop using WIA 1 under Vista?

大憨熊 提交于 2019-12-06 03:53:35
I'm using VS2008 SP1 under Vista SP1. My .Net-program uses a COM reference to WIA (Microsoft Windows Image Acquisition Library v2.0). I'm using CommonDialogClass.ShowAcquireImage to scan a document and it's working fine. One of my customers is running XP. As I understand WIA, under XP you have to use WIALib (WIA 1.0). Is it possible to develop under Vista using WIA1? MS does allow you to download the WIA 2.0 library for XP here . That way your customer can use your app as is. Also, I like WIA 2.0 more than 1.0. I setup a small WIALib-project with VS2008 under Windows XP and copied the created

Batch file to delete all folders in a directory except a specified list

不羁的心 提交于 2019-12-06 03:21:32
I'm looking for a batch file that will go into C:\Documents and Settings\ and delete all folders except a few that I want to keep. Here's a hack-around =D If you have a list of folder paths in say folders.txt listed as so: C:\Documents and Settings\Mechaflash C:\Documents and Settings\Mom C:\Documents and Settings\Dad etc. What you can do is temporarily change them to hidden folders, then RMDIR on all non-hidden folders. CD "C:\Documents and Settings\" FOR /F "tokens=*" %%A IN (folders.txt) DO ( ATTRIB +H "%%A" /S /D ) FOR /F "USEBACKQ tokens=*" %%F IN (`DIR /B /A:-HD "C:\Documents and

Preinstalling WinXP USB drivers to be able to connect device without interaction

瘦欲@ 提交于 2019-12-06 03:17:46
问题 We are a small hardware manufacturer. Most of our products use USB for programming the controllers used. The current situation is that programming the hardware (part of the assembly processor) is rather labour intensive. Each time a new USB device gets plugged in Windows prompts for a driver install. This means that for each new product we have to go through a process of "no, don't go to internet" --> "yes, search automatically" --> "done". We even have to do this twice for each product. I

How to copy a large file in Windows XP?

牧云@^-^@ 提交于 2019-12-06 03:01:30
I have a large file in windows XP - its 38GB. (a VM image) I cannot seem to copy it. Dragging on the desktop - gives error of "Insufficient system resources exist to complete the requested service" Using Java - FileChannel.transferTo(0, fileSize, dest) fails for all files > 2GB Using Java - FileChannel.transferTo() in chunks of 100Mb fails after ~18Gb java.io.IOException: Insufficient system resources exist to complete the requested service at sun.nio.ch.FileDispatcher.write0(Native Method) at sun.nio.ch.FileDispatcher.write(FileDispatcher.java:44) at sun.nio.ch.IOUtil.writeFromNativeBuffer

.NET Embedding application in windows-taskbar

人走茶凉 提交于 2019-12-06 02:58:38
问题 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 回答1: 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

Unkillable console windows

和自甴很熟 提交于 2019-12-06 02:38:37
I'm developing an OpenGL based 2d simulation with GLUT under Visual C++ 2008, sometimes when I have an assert() or unhandled exception and break into the debugger, the GLUT display window closes, but the console window remains open.They just cant be killed!!! They do not show up with Task manager, Process Explorer or any other tool, I cannot find the window handle using the Spy++ tool either. Worst thing is they prevent my system (Windows XP) from shutting down, I have to manually poweroff (and of course I have to run chkdsk on my drives and invariably it finds and fixes minor errors after bad