windows

Windows - Map a Keyboard Key to the Same Action as Left Mouse Button

Is the a programmatic way (or something more simple) to map some keyboard key to the same action windows-wide as the left mouse button in Windows XP / Vista. If programmatic is there a way to do this in .NET 2.0 (or greater)? ...

commit writes

Im programming win32 using fopen fread fwrite in C. How can I force windows to write data through to the disk? Is than an API call for this? I have a program that must absolutely make sure that data is saved to disk before it saves to a different indexing file, otherwise if there are crashes the index file can sometimes update but the ...

Command to refresh environmental variables

Hi, This question is w.r.t this http://stackoverflow.com/questions/171588/is-there-a-command-to-refresh-environment-variables-from-the-command-prompt-in where you had posted a comment in which we could avoid using the batch file. It would really help if you can show the complete example. Thanks. ...

How do I stop my computer from going into sleep or hibernate mode?

I have noticed that when I run Windows Media Player on my laptop, that the screen saver will not start and more importantly my computer will not go into sleep or hibernate mode. However, when running iTunes or other applications, unless you move your mouse or hit a key on your keyboard your computer will eventually go into sleep or hiber...

Platforms for running memcached

Is there any reason in particular why it's recommended to run memcached on a Linux server? Is it really that bad an idea to run it on a Windows Server box? What about an OS X Server box? The biggest reason that I read is about TCO. In other words, for each windows box that we run memcached on, we have to buy a copy of Windows Server ...

About 3D effect in WPF

I'm developing WPF SW, and I see the 3D effect is very slow if we did it in XAML file, I want to know if there is a book which introduce how to do 3D effect in WPF? Thanks in advace. ...

How can I block keyboard and mouse input in C#?

I'm looking for some code (preferably C#) that will prevent keyboard and mouse input. ...

IPC Troubleshooting

What is the best way to troubleshoot IPC? Are there any tools/tricks to determine problems (without requesting the source code)? I have two, third party components. The IPC server config and client config seems correct. Yet the two components don't want to communicate. One component throwing a null object exception, which I believe is...

Desktop flash log viewer for windows?

I was wondering if anyone knew of an application that would show the flash log live as it updates, I made a simple app in VB that is a web browser control that is mapped to the location of my flashlog.txt but I always have to hit F5 and for some reason recently it has stopped working... so, anyone know of one for windows that works well?...

Hrez.exe Where do I find it?

Hi All, I have a Dmake file that uses: REZCOMPILE = C:/hrez/hrez.exe I have googled and I cannot find HREZ anyplace. Where does one get it? -Jason ...

Unable to find standard libraries when compiling Objective-C using GNUstep on Windows

I just installed GNUstep on my Windows XP machine and I'm attempting to compile the following Objective-C Hello World program from the command line: #import <Foundation/Foundation.h> int main(int argc, const char *argv[]) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; NSLog(@"Hello world\n"); [pool drain];...

Windows API: Detecting when a driver install has finished

I'm writing some software that automatically connects a Bluetooth device using the Windows Bluetooth API. When it connects, Windows automatically starts installing the Bluetooth HID device driver, as expected: This takes about 10-15 seconds, after which Windows displays the familar "ready for use" message: The problem is that Bluet...

how to output to console in C++/Windows

When using iostream in C++ on Linux, it displays the program output in the terminal, but in Windows, it just saves the output to a stdout.txt file. How can I, in Windows, make the output appear in the console? ...

Make our application show in access and defaults

We are developing our application to be a default e-mail program, and would like it to be one of the options in the Control Panel-> Add or Remove Programs-> Access and Defaults-> Custom-> Choose a default e-mail program: area. How is this done? It's a rather simple registry change to add the application to the list in IExplore-> Tools -...

My winform app uses xml files to store data, where should I store them so Vista users can write to them?

My winform app uses xml files to store data, where should I store them so Vista users can write to them? Thanks ...

ramdisk with a file mirror

I wanted to speed up compilation so i was thinking i could have my files be build on a ramdisk but also have it flushed to the filesystem automatically and use the filesystem if there is not enough ram. I may need something similar for an app i am writing where i would like files to be cached in ram and flushed into the FS. What are my ...

Unmanaged VC++ Application's memory consumption on windows server

OK, so I have a very large multi-threaded unmanaged c++ application (server) that runs on a windows 2003 server. It hosts sessions for 20-50 concurrent users doing all sorts of business logic... At times it can be using a very large amount of memory due to things like object/session caching due to users having large numbers of windows o...

How to make my Windows Form app snap to screen edges?

Anyone out there know how to make your .net windows form app sticky/snappy like Winamp so it snaps to the edges of the screen? The target framework would be .NET 2.0 Windows Form written in C#, using VS08. I am looking to add this functionality to a custom user control, but I figured more people would benefit from having it described f...

Developing lightweight (no runtime) Windows based GUI applications using free tools.

Does anyone know of free tools (languages, environments) that would support development of GUI applications on the Windows platform? I am looking to be able to create a single executable file that has no dependencies on any external runtime or library. I would like to be able to then run this EXE in a very similar manner to Process E...

Python - How to check if a file is used by another application?

I want to open a file which is periodically written to by another application. This application cannot be modified. I'd therefore like to only open the file when I know it is not been written to by an other application. Is there a pythonic way to do this? Otherwise, how do I achieve this in Unix and Windows? edit: I'll try and clarify....