windows

Capture coordinates of the click in a web browser window on Windows machine

I am not sure if we need our own custom browser for this. If we do, what is your recommendation for open source browser? We need application that is able to capture location of user clicks on the web page in the browser on Windows machine (cross-platform would be a huge plus). Store the coordinates in the file. Later be able to open b...

Coda Slider Effect - CSS Issues with Mac Browsers

I'm having some issues with coding the coda slider navigation and panels to be exactly as the panels were uh, designed. I am using this version of coda slider ( http://jqueryfordesigners.com/coda-slider-effect/ ), and am using, for the most part, the same structure of CSS within their idea of the coda slider. To allow the navigation to...

Is it possible to check whether you are building for 64-bit with Microsoft C Compiler?

Is there a simple preprocessor macro that is defined for a 64-bit build? I thought _WIN64 might have been it, but even when I build a 32-bit target, the parts enclosed in a #ifdef _WIN64 ... #endif are compiled in, and this is causing problems. It's Friday and I can't think straight, but I'm sure I'm overlooking something very simple her...

How to remove an accidentally put large file (4GB) from Subversion repository ?

Well this file was put in the repo by mistake and was deleted and added to ignore list. However, because it once existed, my repo is now > 4GB in size and some SVN functions take years to complete. I would appreciate any help and tips. (I'm on XP if it matters) ...

Starting serverside print job via PHP

This is most likely not an easy one but here is the situation: I have written a C# command line application which: creates a PDF using ITextSharp writes it to disk uses Acrord32.exe (this is Acrobat Reader) via System.Diagnostics.Process in order to silently print the generated PDF If I build my solution and double click the pdfGen....

Watching sockets with Glib on Windows puts them in non-blocking mode

The following code does not work correctly on Windows (but does on Linux): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setblocking(True) sock.connect(address) gobject.io_add_watch( sock.fileno(), gobject.IO_OUT | gobject.IO_ERR | gobject.IO_HUP, callback) Snippets o...

Recently, i am on a project which needs raw read / write sector of drives

Before, I post a question here asking for advice on how to read and write data from and into drive, not via file label like "aaa.txt", but just sectors.. I was advised to try read and write.... but new problems'v raised... the hairy parameters int _read( int handle, void *buffer, unsigned int count ); when i use the function and wanto ...

How can I efficiently retrieve the number of files in a directory?

Is there a way (on windows using Delphi 2010) to get the number of files in a dirctory without actually traversing all files? I want to implement a progress bar during some file system indexing operation. For that reason I need to know how many files are in the directory. What is the fastest way to get the number of files in a director...

Toolkit for making Windows Taskbar Tool Application?

Hi, I'm making a small tool application that user can minimize in the taskbar. I'm sure I've seen a toolkit for it in some blog a few years ago. I'm basically just looking for a project template that perhaps has ready-made functionality for: minimizing to taskbar right-click menus animated small notification pop-up windows (like MS Me...

Capturing STDOUT and STDERR of an external program *while* it's executing (Ruby)

Scenario: I have to call an external program from my Ruby script, and this program sends a lot of useful (but cryptic) info to stdout and stderr. While the program is running, I'd like to parse the lines it sends to stdout and stderr and: Remove them if not necessary Reformat/replace them if necessary I tried all the usual tricks (...

How to tell if the file supplied really is a registry hive

I'm doing some work with registry hives, and I need to know if the file the user supplies the program with really is a registry hive. Short of attempting to mount it, how can I tell if the file really is a registry hive? ...

Viewing incoming ping on windows server

I'm trying to see the results of an incoming ping on a target windows machine. This is needed to verify that the ping, which is running in a background thread, is being sent from the originator. I have tried netstat to no avail. Are there any other approaches I could try? Thanks. ...

WCF Service: The SecurityContextSecurityToken with context-id= (key generation-id=) is not registered.

enter code hereHi All, I have a simple windows service application that connects to a WCF service. The windows service is deployed on our Development Application Server, and the WCF service onto our DEV Web Server. The service is setup to run under the appropriate service account (we have a couple of other services that also communicate...

Why do I get wrong text size for the toolbar?

In a Win32 GUI application I need to determine the width of area occupied by a string on a toolbar button so that I adjust the button width accordingly. The toolbar is plain old ToolbarWindow32 windows class. I use the following code: HDC dc = GetDC( toolbarWindowHandle ); SIZE size; GetTextExtentPoint32( dc, stringToMeasure, tcslen(...

Message passing interface (MPI)on Windows

Hello, I an new to MPI and i want to use it under windows. Please could any one give me a link in which i can download this library (if exist). If there are many versions of MPI i hope to be referred to the most linux like because i have an MPI C linux code and i want with minimal change to make it work on windows. Thanks very much Hani...

Getting the Windows System Error Code title/description from it's hex number

I'm messing around with some windows functions using p/invoke. Occasionally, I get an error code that is not ERROR_SUCCESS (such an odd name). Is there a way to look these up within the program? Forexample, if I get error 1017. Can I tell the user The system has attempted to load or restore a file into the registry, but the spec...

Does JBoss run well on Windows?

It appears that we will have to build/deploy one of our new JBoss apps on Windows. All our current deployments are on Solaris so we were slightly concerned with the stability of this model. Apparently half of JBoss deployments are on Windows if this article is accurate. But I was wondering what the community had to say.. Is Windows...

Do I really need Visual Studio

Do I really need Visual studio to build c/C++ application on Windows. Is there any way to have makefiles and get the application built. ...

How do you run Jboss 4.2.0A as a service in Windows XP Pro

I saw something once for wrappers used to do this but it asked for a licensing fee. Is there an open source way to do this? ...

LoadStringW - winuser.h. What does it do?!

I have been unable to find any decent documentation on this function. The code base I am working with uses a function from winuser.h called LoadStringW which takes as arguments: (HINSTANCE hInstance, UINT uID, LPWSTR lpBuffer, int cchBufferMax). What is this function? What is it for? When might it return 0? ...