windows

Testing if a program is installed using PHP

For a particular PHP script I'm working on, I'm going to use a system call to the Lynx web browser to convert HTML to plain text and capture the output: $text = `lynx -dump stackoverflow.com`; /* #[1]Stack Overflow [2]RSS [3]login | [4]about | [5]faq ____________________________ [6]logo homepage * [7]Questions * [8]Tags * [9]Use...

Best Language/Tool To Develop GUI on Windows

I reviewed the answers provided to the "GUI Programming APIs" post and wondering if these answers still apply. http://stackoverflow.com/questions/610/gui-programming-apis Specifically from that thread it appears that QT is the one that was most referenced with wxWidgets and Shoes a close second and third. I just wanted to make sure ...

Testing a visual c exe on a test vanilla machine don't start

This Application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. This is what I get when i try my debug file on a system without visual studio installed. I tried to copy the Debug_NonRedist\x86\Microsoft.VC90.DebugCRT in the same folder as my exe, wi...

WCF Windows Service TimeOut

I have a client application developed in .net seding a request to wcf service and supposed to send reponse .if execution time with in 1 minute,there is no error,if it exceeds 1 minute the error is Inner exception: This request operation sent to net.tcp://localhost:18001/PitToPort/2008/01/30/StockpileService/tcp did not receive a reply wi...

AddMessageFilter without Windows Forms?

I'd like to use the functionality of System.Windows.Forms.Application.AddMessageFilter but my target application does not use Windows Forms. This functionality adds a filter to monitor Windows messages as they are routed. If anyone knows how this works, I wouldn't mind writing my own code to perform the same function. SetWindowLong wit...

Getting to SVN from TeamCity using Windows Authentication

I am trying to setup TeamCity on my Windows XP machine. It is failing to get the code from subversion because of an authentication error. I have put my windows domain\user username and password into the TeamCity configuration - but it looks like it's trying basic authentication. What do I need to change? Here is the TeamCity SVN log (th...

Microsoftless C# development system for Windows

If you were given a new computers with Windows ( XP or Vista ) and had to install a development system for C# which used as little as it could of stuff created at Microsoft, how would you do it? PS: I want to make clear ( since it seems I initially didn't ), I do not mean an IDE. I mean a system. Suppose I install XP or Vista without in...

How can I get an assembly language listing of my Arduino Sketches on Windows?

I would like to be able to see an assembly language listing of my Arduino sketches. How can I achieve this? Update: I am running the Arduino Software on a Windows machine. ...

How do I automatically update a subversion repository?

Does anybody know how I can run automatic update subversion? If anybody has a script or something like that, could you show me an example? ...

Why is ruby so much slower on windows?

What are the specific technical causes of Ruby being so much slower on Windows? People report about a 3X speed drop from Linux/OSX and there are some vague discussions about Ruby using a compiler for Windows versions that produces slow code but I can't find any specific details. Anybody know the specifics? I'm not interested in hurf d...

Is there an easy event in .Net to detect a cd, dvd (or usb) insertion?

I know you can do it with an WMI event or overriding WndProc and looking for the right messages, but i was wondering if there wasn't something hidden in the net framework that makes this task easyer. ...

CD eject notification in Windows

My program needs to know when a user ejects cd disc. Is there some sort of notification for this in Windows? ...

Windows equivilent to UNIX pwd

How do I find the local path on windows in a command prompt? ...

how to check if a directory is writeable in win32 C/winapi?

I know of two methods which are not reliable: _access() - doesn't work on directories (only checks existence) CreateFile() - gives false positives in the presence of virtual store (AFAIK) Most useful would be a code sample, because the win32 ACL access functions are extremely complicated. Please don't post links to msdn, I've been th...

How can I make a program that's impossible to be killed in Windows?

We are making a Jabber client for our internal use in our company and somehow we need to catch the moment when the user tries to kill the program to actually restart it or just make impossible for the user to kill the client. Is this possible? Our Jabber client will be written in C#. How would I go about accomplishing this? ...

How do I monitor failed logon attempts in Windows?

Is there any reliable way to monitor failed logon attempts on-the-fly in Windows XP? (well, Vista too for that matter). I need to monitor failed logon attempts programmatically which is currently accomplished with a simple GINA Stub by subclassing the Login dialog from MSGINA. However, my current solution is not waterproof if there are ...

Performance degradation of CreateFile API

Hi, I have an application that is restoring lots of data from a library. We are using Windows server 2003. As the process progresses we are seeing performance degradation. I added some performance counters for 4 of my major tasks, Create file, Read from library, WriteData, Close file. We are restoring millions of files. What I observed ...

How to schedule a C# Windows Service to run a method daily?

Possible Duplicate: How might I schedule a C# Windows Service to perform a task daily? I am creating a C# Windows Service, but I didn't figure out the best way to make timer fire a method daily at a specific time specified in App.Config file (e.g. daily at 6:00AM, my method is executed). How do you do it? Thanks ...

Can I copy multiple named files on the Windows command line using a single "copy" command?

I'd like to copy several known files to another directory as a part of a post-build event, but don't want to have lines and lines of "copy [file] [destination] [switches]" in my build event. If possible, I'd like to list out the files I'd like to copy using a similar format: "copy [file 1] [file 2] [file 3] [etc...] [destination] [switch...

Python Environment Variables in Windows?

I'm developing a script that runs a program with other scripts over and over for testing purposes. How it currently works is I have one Python script which I launch. That script calls the program and loads the other scripts. It kills the program after 60 seconds to launch the program again with the next script. For some scripts, 60 sec...