windows-xp

Mouse jiggling / message processing loop

I have written a multithreaded program which does some thinking and prints out some diagnostics along the way. I have noticed that if I jiggle the mouse while the program is running then the program runs quicker. Now I could go in to detail here about how exactly I'm printing... but I will hold off just for now because I've noticed that ...

How to updates/install mfc71u.dll, msvcp71.dll, msvcr71.dll in visual studio 2005

Hello I have an application which can require some of .dlls i.e mfc71u.dll, msvcp71.dll, msvcr71.dll while running. Is there any Microsoft updates are there which can update visual studio 2005 so that I can install and my system can get that .dlls. Thanks, Kamal. ...

How to enable .htaccess in httpd.conf on XP?

I would like to use mod_rewrite() on my apache setup on a windows machine. As you probably know, Windows doesn't use Unix-style hidden filenames like ".htaccess." So should I change AccessFileName .htaccess to AccessFileName xyz.htaccess ? or there is something else I need to do? ...

Control over who can use audio output channel in XP

I have a need to turn off other audio sources when I plan to use the Text to Speech API. The other audio may be in another process. I have looked at the mixer control, but I really only have control of the output there. Is there another place in XP that I can control the output so only my app is able to be heard? ...

How to Run VBS script from cmd?

I have the following vbs script from Microsoft Support for adding Excel add-in: Dim oXL As Object Dim oAddin As Object Set oXL = CreateObject("Excel.Application") oXL.Workbooks.Add Set oAddin = oXL.AddIns.Add("c:\Program Files\MyApp\MyAddin.xla", True) oAddin.Installed = True oXL.Quit Set oXL = Nothing I save the above script to a fi...

How can I find the current windows language from cmd?

I would like to run a script for each language. I need a way to find wich os language is being used, using batch files. Both on windows XP, and on Windows 7. Thanks ...

Building ffmpeg for Windows with MSYS and MinGW

Hello All, I am trying to build ffmpeg for windows (Xp - SP2) as given here. ./configure -–extra-cflags=”-mno-cygwin -mms-bitfields” -–extra-ldflags=”-Wl, -add-stdcall-alias” -–enable-memalign-hack -–enable-shared -–disable-static -–target-os=mingw32 The above command is placed in a myconfig file as instructed and when i run ./mycon...

Windows Explorer slow to open networked computer, fast to navigate once opened

I open Windows Explorer and enter an IP for a computer on my home network (\192.168.1.101). It takes 30 seconds or more to present a list of the shared folders. Once they appear, navigating through folders and opening files is fast. Suspecting that the remote computer was being automatically indexed or something, I went into Tools->Fold...

Memory mapping physical disks and volumes

In Windows it's possible to open devices and volumes via CreateFile(). I've used this successfully before to ReadFile() from devices, but now I want to switch to memory-mapping. In the following code, I receive INVALID_HANDLE_VALUE for the value of b, and c is set to 87, ERROR_INVALID_PARAMETER. HANDLE a = ::CreateFileA("\\\\.\\h:", GEN...

Why does Visual Studio 2010 have rendering problems in VMware?

We were testing our WPF application on Windows XP in the VMware Player (with VMware Tools) and noticed that dropdowns were buggy in that all the choices would appear when you clicked on the ComboBox but as you moused over them they would disappear. We then noticed that Visual Studio Express 2010 has the exact same problem with its menus...

Maximize CPU Usage

How do I maximize the CPU usage for my application? I tried setting it to "Real-time" in the Task Manager, but there was no noticeable improvement - it's stuck at 50%. I'm working in Windows XP with Visual C++ 2005. ...

Millions of small graphics files and how to overcome slow file system access on XP

Hi, I'm rendering millions of tiles which will be displayed as an overlay on Google Maps. The files are created by GMapCreator from the Centre for Advanced Spatial Analysis at University College London. The application renders files in to a single folder at a time, in some cases I need to create about 4.2 million tiles. Im running it on...

F-N Shortcuts in the Windows' Command Prompt

Hi, Where can I get some explanations on what F1,F2,F3,F4,F5,F6,F7,F8,F9,F10,F11 and F12 do in the Windows' Command Prompt? Are there some other useful shortcuts for Windows' Command Prompt? Thanks, Afriza N. Arief ...

C++ EXE made in VC++ 2008 runs on Windows 7 but not XP

I am working on reviving an old project (that only works with < 5.1) that essentially compiles PHP 5.3 into a PE C++ EXE. I have gotten everthing to work really well on multiple Windows 7 computers with only 2 dlls and 1 exe for most applications! Unfortunately, on XP I get: the application failed to start because the application con...

Which Is The Major Differences Between Windows XP, Vista And 7 At The Development Side

Hello, Recently I installed Windows 7 in my development machine just to test, with it I installed Visual Studio 2010, but I was thinking in what are the major differences between the development for/under Windows XP, Windows Vista and Windows 7?, how about .Net Framework 4? ...

UTF-8 output on Windows XP console

The following code shows unexpected behaviour on my machine (I'm using Visual C++ 2008 SP1 on Windows XP here): int main() { SetConsoleOutputCP( CP_UTF8 ); std::cout << "\xc3\xbc"; int fail = std::cout.fail() ? '1': '0'; fputc( fail, stdout ); fputs( "\xc3\xbc", stdout ); } I simply compiled with cl /EHsc...

Flash buttons disabled in layer over scrollable div Windows XP

On XP in Firefox, I load a flash button in a layer that sits above a scrollable div in the z-index. When my flash button is over the background of an empty scrollable div it does not respond to mouse clicks. If I drag the layer so that the scrollable div is no longer behind the flash button, it works as expected. Anyone have any insigh...

Passing a shortcut to a batch script

My bat script accepts a filepath as a parameter, which allows me to drag-and-drop a file onto it from Explorer. Unfortunately when I drop a shortcut onto it, I simply get the filepath of the .lnk file itself, rather than the file that it refers to. Is there any way to derive the underlying filepath? I am looking for a native capability ...

How can I force a refresh of what ports have listeners

I'm trying to re-launch a WCF service that I killed earlier, but I'm getting an AddressAlreadyInUseException. The port it's attempting to use is 1819. I ran netstat -nao from the command line, and have found there is a listening process on port 1819, that has a PID of 4840. I went into Process Explorer (from SysInternals) to try to ki...

setting the environment path permanently

I want to make a batch file for setting the %PATH% environment variable permanently - ie adding a value to the path permanently (in Windows XP). ...