windows

Howto use maven in a heterogenous environment with different encodings?

I've created a svn repositoy on a linux server (Debian) and used a client on a windows machine to check my java sources in. Now I've set up a Hudson server on a different linux server (Ubuntu) to periodically run tests on my code. But the tests fail with a compiler error: Error: unmappable character for encoding ASCII On my windows ...

How to implement a USB device driver for Windows?

How should I approach implementing a USB device driver for Windows? How should I take into account different versions of windows e.g: - Windows XP - Windows Vista - Windows 7 Is there open source solutions which could be used as a starting point? I'm a total newbie to windows driver development. We have an embedded device with USB d...

Using Named Pipes as Files

Simple question here (though perhaps not such a simple answer): Is it possible to specify a path for an (existing) named pipe that can be used by programs as if they were opening on a normal file? According to this MSDN page, name pipes on the local computer can be referrenced using the following path syntax: \\.\pipe\PipeName, yet I'm...

What possibilities exist to build an installer for a windows application on Linux (install target=windows, build environment=Linux)

After playing around with NSIS (Nullsoft Scriptable Installation System) for a few days, I really feel the pain it's use brings me. No wonder, the authors claim it's scripting implementation is a "mixture of PHP and Assembly". So, I hope there is something better to write installation procedures to get Windows programs installed, while ...

Named Pipe Problem

Is there a function that returns when the other end successfully called ReadFile on the pipe. I have 2 application communicating on a named pipe, one sends a request on the pipe using WriteFile and expects an answer so it calls ReadFile. The problem is that the application is reading its own request as the answer since the other end did ...

What permissions are needed to install and update an ActiveX control?

We are developing a web-based point-of-sale application, which, while it mostly runs in a browser, also requires integration with hardware devices such as credit card readers. In order to provide hardware integration, we have implemented several simple ActiveX controls in C++ using ATL. We are not experienced Windows developers, and are...

How come when I run ruby.exe / IRB all I get is a blank DOS shell?

Hi, I installed ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] on my Windows XP laptop. When I run ruby.exe I get a blank DOS Shell window. No expected "irb(main):001:0>" at the top left of the command prompt. I can type into the shell but, any code I type in actually does anything when pressing enter. I should mention tha...

Monitoring Windows Memory Mapped Files

In Windows, how can I keep track of the file mapping objects created by CreateFileMapping()? Basically I want to know how many memory mapped files are in use and the information like their names, sizes, etc. Thanks! ...

Is there an equivalent to 'cut -c' in Windows cmd.exe (or other XP-standard tools)?

I have some files of fixed line size, fixed field size that I need to extract information from. Nornmally, I'd use Cygwin (cut et al), but that's not an option in this case due to (boneheaded) management policies I can't change. It has to be done using standard XP toolset included with Windows. I need to extract the 10 characters at off...

Deleting a read only file using batch file or command

Hi I would like to know a way of deleting a read only file using a batch file or a command. Suppose i have a dll abc.dll and i am trying to delete this dll using the following command in a batch file del "C:\test\abcd.dll". It does not allow me to do that and it throws access denied message. However if i change the read only attribute ...

Using libsvn to get latest revision for a tree

So I'm using libsvn on windows in a C++ application. I have several svn trees with which I'm using the api. I assume the whole initialization and setup is correct since all other operations work as expected. I use svn_client_log4 (also tried svn_client_log with exactly the same results) and usually when my callback is called, I get the ...

Change windows 7 hotkey or disable monitor orientation

Hi! Windows 7 (may be Vista too) has the hotkey to change display orientation (Ctrl+Alt+[Up, down, left, right]). This hotkey correlates with the one of my IDE. So I would like to disable windows's action on pressing. Does any body now how to disable it? ...

Open Default browser with Mono+gtk#

I need to open an url from my application, on both linux and windows and i want to avoid replacing an existing page on an open browser. How do i call for it to open? I know i can use System.Diagnostics.Process.Start("http://mysite.com"); which should also work under linux, but this will replace any page shown on an already open brow...

IME - How to handle key press

In my game code, I process key input by handling WM-KEYDOWN message. wParam gives me the keycode i need. The problem is with IME, especially KoreanIME. I get WM-IME-COMPOSITION and then WM-KEYUP, but never the WM-KEYDOWN. So, the bottom line is.. I need to get keycode when i receive WM-IME-COMPOSITION. Is there a way to do so? Any hel...

how does the d3dx library save textures to files?

When using the function: D3DXSaveTextureToFile and passing in D3DXIFF_BMP to create a bmp I've noticed that the values seem to be estimated rather than given specifically. Correct me if I'm wrong but a floating point texture can store any float in any given texel which would put it outside the range of a BMP which is stuck between rgb(2...

Sniffer for localhost (Windows OS)

I am looking for a sniffer that can work with the loopback address in Windows. So far, I found Microsoft Network Monitor which is a nice tool, but for localhost it's useless because on Windows, localhost packets don't pass through the regular network stack, so they're invisible to an ethernet sniffer like MS Network Monitor. How do you...

Is a cgi different from a console application?

I am having some problems in running cgi on my Apache (Windows, XAMPP), but the exe runs smoothly on the command prompt. Reading the logs on Apache folder it gives no information about the error. Any ideas about this? ...

how to install haskell openid package in windows

haskell 'openid' package depends on HsOpenSSL and nano-hmac packages which requires openssl. I've compiled openssl for MinGW in C:\OpenSSL\ directory and installed openid package with following command: cabal install openid --extra-include-dirs=C:\OpenSSL\outinc --extra-lib-dirs=C:\OpenSSL\out When I'm trying to compile haskell progra...

UnionFS and SSHFS for Windows

Is there something like a UnionFS for Windows? My usecase: read-only mount a remote filesystem via SSH and have something like UnionFS handle the writes. I know this is possible on Unix, how 'bout Windows? ...

RSS Works fine on my Development Server, not on my Live one.

Ok, here's the specs: Dev Server: Windows, WAMP, PHP 5+, Codeigniter Live Server: Ubuntu Linux, PHP, CodeIgniter, LAMP I get the following error in Firefox from my Live Server: XML Parsing Error: junk after document element Location: http://www.mysite.com/feed/rss2/ Line Number 2, Column 1: *syntax error, unexpected T_STRING in ...r...