windows

Can I have applications using Java 1.4.2_12 and Java 1.5 on the same windows server

I have a couple of applications running on Java 1.4.2_12 and now need to add an new application that uses Java 1.5. Can I have both java versions on a windows server? ...

How to display a windows/X window system window in 3d space on texture?

Hello, I'm wondering, how can I catch a window and display it on texture in 3D space. And how can I redirect mouse and keyboard input from 3D application to application running in background? I mean full 3D desktop. ...

How can I detect a Windows service at project build.

I'm working on a solution that contains a Windows Service and a WinForms client that interacts with that service. In my pre-build and post-build events, I have some net start and net stop commands to start and stop the service, but there are times when this causes a problem (file's not found, service is already stopped, etc.). Is the...

Calling PowerShell scripts from unmanaged C++

Microsoft appears to be moving a lot of configuration and query capabilities to PowerShell (accessible from C# or managed C++), while deprecating and even removing older APIs (accessible for C or unmanaged C++). Those of us who have extensive unmanaged C++ programs that can't switch to managed C++ may have a need to call PowerShell cmdle...

WMEncoder issue

I have an instance of a WMEncoder class THis is .NET so basic interop , what I mean is the WMEncoder is actually generated by the runtime like so namespace WMEncoderLib { [Guid("632B6081-BBC6-11D2-A329-006097C4E476")] [CoClass(typeof(WMEncoderClass))] public interface WMEncoder : IWMEncoder2, _IWMEncoderE...

How can I profile file I/O?

Our build is annoyingly slow. It's a Java system built with Ant, and I'm running mine on Windows XP. Depending on the hardware, it can take between 5 to 15 minutes to complete. Watching overall performance metrics on the machine, as well as correlating hardware differences with build times, indicates that the process is I/O bound. It a...

Does most professional PHP development take place on PCs or on Macs?

I'm trying to determine how likely it is that my next job will involve the use of a Mac/PC if I am hired as a PHP programmer. With Rails, most shops seem to develop on the Mac. I'm wondering whether the same is true of PHP. ...

Different domains to different pages in IIS7

I have a Default Web Site and another web application (let's call it Application2) inside the Default Web Site in IIS7. I have 2 registered domain names, let's say www.example.com and www.example.net. I would like to configure things that when I open www.example.com I get Default Web Site, when I open www.example.net I get Default Web ...

How to use resources in VC++?

I am using VC 9 and I want to support Russian language for my application. I even created Russian resource strings. But my system has Russian Language setting. If it is not there every character displays junk (its code page is 1251). I also made DLL from Russian resource file. If I run that DLL in application from installed location, it ...

How can I test a windows dll to determine if it is 32bit or 64bit?

I'd like to write a test script or program that asserts that all dlls in a given directory are of a particular build type. I would use this as a sanity check at the end of a build process on an sdk to make sure that the 64bit version hasn't somehow got some 32bit dlls in it and vice versa. Is there an easy way to look at a dll file and...

Cancel a DeferWindowPos

I am doing a series of window resizing using the DeferWindowPos functionality. Suppose I already opened the DeferWindowPos handle, and called DeferWindowPos a few time, and now I want to cancel everything: not call EndDeferWindowPos. I tried CloseHandle( hDWP ), but it does not work (crash). If I simply return from my function, I ass...

How do I write a value to the registry on a Windows Mobile 5 device?

I have a string value that I want to write to the registry as a Dword to read via another program. How can i create a new key/string using c# .net? ...

Most efficient replacement for IsBadReadPtr?

I have some Visual C++ code that receives a pointer to a buffer with data that needs to be processed by my code and the length of that buffer. Due to a bug outside my control, sometimes this pointer comes into my code uninitialized or otherwise unsuitable for reading (i.e. it causes a crash when I try to access the data in the buffer.) ...

DirectSound/FFDShow without a Sound Card

I've got an application that uses DirectShow/DirectSound which plays videos and extracts the video/sound. Running it on a server without a soundcard means the audio cannot be grabbed, is there a way around this? I look briefly at Virtual Audio Cable 4 but that doesn't seem to emulate a soundcard over a terminal session.. The tricky part...

Git error: fatal: unable to connect a socket (Invalid argument)

I've got msysGit (Git on Windows) working just fine on my home machine, but at work, where we are behind a Microsoft ISA proxy, I get the following error when I do a git clone: H:\>git clone git://github.com/akitaonrails/vimfiles.git Initialized empty Git repository in H:/vimfiles/.git/ github.com[0: 65.74.177.129]: errno=Invalid argume...

Is there any Glade3 installer for Windows?

I downloaded file: http://downloads.sourceforge.net/gladewin32/glade-3.4.3-win32-1.zip and when I extract it an run glade-3.exe from /bin folder, I get "no libxml2.dll" error. Now, I want to find installer (like GTK+ bundle for GTK+) that would install glade3 and all it's dependencies for Windows XP. ...

Multiple Java installs on Windows

Can 32-bit and 64-bit Java be simultaneously installed on Vista x64? ...

What's the equivalent of PostMessage to self, for Windows Forms?

I'm writing a custom control derived from System.Windows.Forms.Control. The control is using the Control.KeyDown event, to watch keystrokes: I should handle some keystrokes (for example <Ctrl>-K) as hotkeys, which cause me to launch a dialog box. If I launch the dialog from my onKeyDown event handler, the dialog is displayed before I s...

Register Hotkey

I have this function: RegisterGlobalHotKey(Keys.F6, MOD_SHIFT | MOD_CONTROL); which call an API to register a global shortcut key in the system. void RegisterGlobalHotKey(Keys hotkey, int modifiers) I created a small options form to set this keys to be variables not fixed values like this: RegisterGlobalHotKey(VARIABLE1, VARIABLE2 | VAR...

Sending a keystroke to the operating system in EmacsW32

As you probably know if you write text in multiple languages and use Emacs, Emacs has its own input method system independent of Windows (or other operating systems). Input methods can be toggled with toggle-input-method command. When Windows language changes, Emacs receives a <language-change> keypress. I would like then to bind <langua...