windows

Serial port, equivalent of "full duplex" flow control?

I have a document with connection information to a device over a serial port. It specifies "full duplex" as the setting for flow control. Under Windows, I have the following options for setting up the flow control: Xon/Xoff Hardware None What is the equivalent of "full duplex" in the above list? ...

Installing Python 3.0 on Cygwin

The Question What is the correct way to install Python 3.0 alongside Python 2.x using Cygwin? Notes I already have a working copy of Cygwin, and Python 2.x is installed within Cygwin (/lib/python2.x, not c:\python2.x). Also, I would like to be able to call python 3 separately (and only intentionally) by leaving python pointing to Pyt...

Can you connect to a MS Access database from Ruby running on a Mac?

I'm pretty sure the answer is "no" but I thought I'd check. Background: I have some legacy data in Access, need to get it into MySQL, which will be the DB server for a Ruby application that uses this legacy data. Data has to be processed and transformed. Access and MySQL schemas are totally different. I want to write a rake task in Ru...

Alternatives to IIS for windows to run ASP.NET

Are there any alternatives to IIS for windows to run ASP.NET? CassiniEx seems pretty old? ...

Is there a way to delete files instantly on Windows XP?

On my Mac and any other Unix machine, when I delete a file by any of the several available methods (rm on the command line, drag to trash, press delete key) it usually happens instantly. Occasionally it takes a few seconds if it's a huge file. On Windows, when I try to delete something a dialog comes up with a progress bar. On my machin...

Why would recv fail when the requested buffer size is greater than the amount of data available?

Underlying the TCP transport stack are a number of buffer limits sometimes documented by their authors. On WinXP SP3 I've run into one of these, I think, and can't figure out why. I have implemented a simple client to get data from a server (written by a colleague in Java). The protocol is to write the length of the data (in network o...

Most efficient way to process arguments from the command-line in C++

Suggestions for command-line argument processing in C++ efficiently: Note: Windows specific only 1: #include <iostream.h> 2: int main(int argc, char **argv) Instead of, for example: if ( argc != 3 ) { .... } Regards ...

Is there some sort of secure local storage on Windows?

I was thinking of making a small tool. It is not important what the tool will do. The important thing, is that the tool will need to store some sensitive information on the user's HDD. EDIT: The information that will be stored is USER'S information - I'm not trying to protect my own content, that I distribute with the app. I understand ...

Best way to interact with Command Line application

I need to write a component for an application that interacts tightly with a command line application. The command line application asks a series of questions, performs some computations, then terminates (which i need to detect). Essentially, i want to wrap up this interaction in a wrapper class. Has any one achieved similar in the past...

Windows equivalent of OS X Keychain?

Is there an equivalent of the OS X Keychain, used to store user passwords, in Windows? I would use it to save the user's password for a web service that my (desktop) software uses. From the answers to this related question (Protecting user passwords in desktop applications (Rev 2)) and the multitude of third party password storage tools...

How do I find out if my application is running on x86 or x64 Windows?

I want to know, at run time, whether I'm running on 32 bit or 64 bit windows. The OSVERSIONINFOEX structure tells me the major and minor version, but I'm guessing I need the build numbers. Anyone know what they are? ...

Hook windows logon/logoff events

I am having a service which would be running at SYSTEM level. Now, i want to track the logged on user in it. Earlier i was trying to get the logged in user name from GetUserName api but in my case it returns "SYSTEM" every time. Is there anyway to get logged on username in my case? or is there any hook that i can install so that i may ...

What could cause a VB.NET application to crash before running any code?

My VB.NET application compiles, installs and works fine on the development PC. However, when I take the install package elsewhere, it installs ok but crashes before any code is executed. The error is " has encountered a problem and needs to close..." I have removed all references to external files e.g. icon files etc. I have only one...

Quick and dirty solution for communication between processes in different machines

I have two processes written in java in two machines within my network that should pass simple chunks of data to each other. I'm looking for a quick and dirty way (without resorting to writing files and polling for changes on network share files) ...

Qt goes LGPL! On Windows, is it good enough to use instead of MFC?

I just read a story I was hoping to read since Nokia bought Trolltech. Qt is going LGPL in March! This is awesome news. Who uses Qt for Windows? Does it effectively replace something like MFC? Sure, I can RTFM (and to some degree I have)... but what do people USING Qt on a Windows platform think of it? I still do quite a bit of M...

PostMessage occasionally loses a message

I wrote a multi-threaded windows application where thread: A – is a windows form that handles user interaction and process the data from B. B – occasionally generates data and passes it two A. A thread safe queue is used to pass the data from thread B to A. The enqueue and dequeue functions are guarded using a windows critica...

Is it possible to communicate directly over USB?

Is it possible to have two applications on the same computer to talk to each other directly over USB (no cable, no associated devices)? Is it easy/hard? What API would you guys recommend? Yes, I posted a similar thread, but it was asking specifically for a JAVA/USB implementation, which I found, but I need windows support. So now I...

How do you schedule a daily script run on Windows XP?

I wrote a script in Ruby. I'd like to run it every day at a certain time. How do you do that on a Windows XP system? I poked around on the machine and discovered the "scheduled tasks" control panel, but it doesn't seem to have anything to do with running scripts, as far as I can tell from the options offered by the "wizard". ...

How to get Program Files folder path (not Program Files (x86)) from 32bit WOW process?

I need to get the path to the native (rather than the WOW) program files directory from a 32bit WOW process. When I pass CSIDL_PROGRAM_FILES (or CSIDL_PROGRAM_FILESX86) into SHGetSpecialFolderPath it returns the WOW (Program Files (x86)) folder path. I'd prefer to avoid using an environment variable if possible. I want to compare some...

Cleanest way to run/debug python programs in windows

Python for Windows by default comes with IDLE, which is the barest-bones IDE I've ever encountered. For editing files, I'll stick to emacs, thank you very much. However, I want to run programs in some other shell than the crappy windows command prompt, which can't be widened to more than 80 characters. IDLE lets me run programs in i...