windows

Drag and drop onto Python script in Windows Explorer

I would like to drag and drop my data file onto a Python script and have it process the file and generate output. The Python script accepts the name of the data file as a command-line parameter, but Windows Explorer doesn't allow the script to be a drop target. Is there some kind of configuration that needs to be done somewhere for this...

Why does my MFC app hang when I throw an exception?

If you throw an exception from inside an MFC dialog, the app hangs, even if you have a catch block in your code. It refuses to respond to the mouse or keyboard, and the only way to shut it down is to use Task Manager. Why I'm posting this question To my shame, there is a popular shrink-wrapped application that hangs every time it enc...

Is Windows' rand_s thread-safe?

Just as in title. Is suspect it is, but I couldn't find it anywhere explicitly stated. And for this property I wouldn't like to rely on speculations. ...

Window styles / Minimal titlebar/borders

I'm looking for some kind of a resource (website) that would list all possible window/dialog frame styles and their respective combinations with images. I'm only really interested in Vista, as my software won't support older platforms anyway. I have a more specific case here too: I'm wondering if there are other ways to achieve a smalle...

How to get create/last modified dates of a file in Delphi?

I want to get a files these attributes as integer values. ...

Tracking changes in Windows registry

Is there a way to track changes in Windows registry? I'd like to see what changes in the registry are made during installation of various programs. ...

Windows C++ dialog resizer class

I'm looking for a really good dialog resizer class that will stretch and shrink individual items as needed as the screen is resized. Stephan Keil has a good one (DlgResizeHelper) which basically resizes everything by a set ratio, but I'm looking for something smarter. For example: Icons should not resize Single-line text boxes should...

How do I install the D programming language into C:\Program Files?

The prompt says that if I install the software into a directory with spaces: the rebuild build tool used by the D Shared Source System will fail to build and that I will be forced to reinstall in a different location However, I don't like random things in my C:\ drive. D, IMO, belongs in Program Files with PHP and MinGW and s...

Bluetooth APIs in Windows/.Net?

I am in the process of writing a Bluetooth scanner that locates and identifies mobile devices in the local vicinity. Is this something that I can accomplish using C#, or do I need to drop down into the C/C++ APIs? My application is targeting Windows XP and Vista. Pointers are appreciated. Thanks! ...

Ruby. How can I copy and paste in irb on Windows?

How can I copy and paste in irb (Interactive Ruby Shell) on Windows? ...

What's the best way to benchmark programs in Windows?

I need to do some performance benchmarks on .NET programs (C#) in Windows, but I haven't done benchmarking much in the Windows world. I've looked into using the Windows 2000/XP Performance monitor with custom counters for this, but I don't think this is quite what I want. Are there any good system facilities for this in Windows XP, or ...

What's a Windows text editor that matches this criteria ...

My Situation: I love e editor, however I'm on a new computer and my license is being used on my old one. I can't exactly afford another license, so I'm looking for a free editor that meets the follow criteria: Decent syntax highlighting Ability to view a directory and its contents on the side panel, without the need to create it as a '...

Multiple repositories, single setup

If I use multiple repositories, all located under a single root folder, how can I set it up so that they will use a single master svnconf/passwd file for setup but still allow me to customize each if the need arises? This is on windows but I guess the process would be similar on other systems. Update: I am using svnserve as a service. ...

Creating, opening and printing a word file from C++

Hello everyone, I have three related questions. I want to create a word file with a name from C++. I want to be able to sent the printing command to this file, so that the file is being printed without the user having to open the document and do it manually and I want to be able to open the document. Opening the document should just op...

Is it possible to programmatically change a user's screen saver and/or desktop background?

I have been asked to standardize the screen saver and desktop background used by everyone in my company and, aside from going around to each PC individually, I'm looking for a programmatic way to accomplish this. I am not a systems admin, so have never crossed this bridge before. It is also worth noting that most PCs are running Window...

Way to stop a program from starting up using c#?

Here's the idea, I'd like to make a service? that will look for a certain program starting up and dissallow it unless certain conditions are met. Let's say I have a game I want to stop myself from playing during the week. So if I start it up on any day other than Friday/Saturday/Sunday, it will intercept and cancel. Is this possible ...

How to programmatically simulate XP's "Windows Security" start menu option on Windows 2000

I'm trying to find a way to invoke the Ctrl+Alt+Delete dialog on a Windows 2000 computer that I'm connected to via Remote Desktop. Windows XP and 2003 include a new start menu command called "Windows Security" that does this, but Windows 2000 has no such option. It appears that Ctrl+Alt+End will do this, but it only goes to the outermos...

Upgrading DOS Batch files for Windows

Has anyone had any recent requirements for programming automated DOS Batch style tasks on a Windows box? I've got some automation to do and I'd rather not sit and write a pile of .BAT files in Notepad if there is a better way of automating these tasks: mainly moving of files under certain date and time conditions, as well as triggering ...

Converting Win16 C code to Win32

In general, what needs to be done to convert a 16 bit Windows program to Win32? I'm sure I'm not the only person to inherit a codebase and be stunned to find 16-bit code lurking in the corners. The code in question is C. ...

How do I draw transparent DirectX content in a transparent window?

I want to draw DirectX content so that it appears to be floating over top of the desktop and any other applications that are running. I also need to be able to make the directx content semi-transparent, so other things show through. Is there a way of doing this? I am using Managed DX with C#. ...