windows

reference Windows Media Encoder library error

Hello everyone, On Windows Vista/XP, my code works fine. But on Windows Server 2003 x64 edition, after installed x64 version Windows Media Encoder 9 and Windows Media Encoder 9 SDK, in project reference, I need to add reference (in COM Tab) to Windows Media Encoder library, but I cannot find the Windows Media Encoder library on Windows ...

du in powershell?

How can I get a "du" -ish analysis using powershell? I'd like to periodically check the size of directories on my disk. The following gives me the size of each file in the current directory: foreach ($o in gci) { Write-output $o.Length } But what I really want is the aggregate size of all files in the directory, including subdir...

How can I switch from CMD.exe to Powershell?

I have this idea that I should switch over from cmd.exe to powershell. It's so much more powerful than the tried and tested cmd.exe. It is the shell of the future for Windows. But my facility in powershell is so limited, in comparison with cmd.exe. Around every corner I discover another seemingly small obstacle that is insurmountable...

Qt DLL deployment on Windows

Hello, I have a Plug-in for an application from another company. My plug-in uses Qt so it needs the Qt DLLs. My problem is that all versions of 4.x Qt Dlls are called the same, e.g. :QtCore4.dll. It is quite possible that some other plugin, or another application which inserted itself into the PATH environment variable, has put Qt dlls ...

What are Windows "USER objects"

I'm trying to track down an issue in our MFC code that looks like a resource limitation issue. Memory and CPU look fine. According to the processes tab on the Task manager our GDI objects look in line with other applications, but our USER objects appear to be a factor of 10 greater then other applications. What is a "USER object" and...

Prevent Visual Studio from trying to load symbols for a particular DLL

I have Visual Studio 2005 set up to use Microsoft's symbol servers. I also have UltraMon installed, which injects a hook DLL into every process. Whenever I start debugging my MFC application, VS says: "Loading symbols for C:\Program Files\UltraMon\RTSUltraMonHookX32.dll..." for anything from the blink of an eye to several tens of se...

what happened to mongrel? any alternatives on windows?

I've jus saw that mongrel's last updat was about one year ago... http://mongrel.rubyforge.org/wiki/WikiStart?action=diff&version=35 has it been disontinued? is there any other lightweight alternative for a windows development box? ...

How would I go about prevent DLL injection.

So the other day, I saw this: http://www.edgeofnowhere.cc/viewtopic.php?p=2483118 and it goes over three different methods of DLL injection. How would I prevent these from the process? Or at a bare minimum, how do I prevent the first one? I was thinking maybe a Ring 0 driver might be the only way to stop all three, but I'd like to see...

About Mutex object in Vista

My OS is Vista with UAC turned on, I create a global Mutex object in Server side, then my AP with UI want to use CreateMutex with same name to get the Mutex object which has been created in server, but the function tell me I don't have right to access it. How can I do it? ...

PC equivalent of Coda?

Can any one recommend a good all-in-one web development tool for Windows. Something on par with Coda (Mac OS X)? ...

Is there something like linux ptrace syscall in Windows XP/2003?

Reading http://stackoverflow.com/questions/864839/monitoring-certain-system-calls-done-by-a-process I'm wondering about a Windows equivalent to the ptrace syscall or a programatically workaround. I had an answer in http://stackoverflow.com/questions/865106/is-there-something-like-linux-ptrace-syscall-in-windows but It requires a recent ...

in windows, how to have non-blocking stdin that is a redirected pipe?

I have a Windows C program that gets its data through a redirected stdin pipe, sort of like this: ./some-data-generator | ./myprogram The problem is that I need to be able to read from stdin in a non-blocking manner. The reason for this is that (1) the input is a data stream and there is no EOF and (2) the program needs to be able to...

Is there a limit on number of open files in Windows

I'm opening lots of files with fopen() in VC++ but after a while it fails. Is there a limit to the number of files you can open simultaneously? ...

Programmatically connect Windows VPN invisibly

Hello, How do I write code to connect through Windows VPN client? I want this process to happen invisibly during logon... Please help.. Thanks ...

Where did the gnuwin32 inetutils package go?

There are traces of the gnuwin32 inetutils package on the net. But it's not at the site anymore. where is it? Specifically where is the gnu telnet app for win32? ...

Corrupted Java Swing Window

One of the users of a Java swing GUI program that I wrote is having an issue where the main swing window doesn't render to the screen properly and the GUI freezes up. Here's a comparison of the screenshot on his screen (top) and what is supposed to show up (bottom): He is running Windows XP SP3 with Java 1.6.0_13 and his graphics car...

Mercurial Web Interface Broken Links

I'm installing mercurial on a W2K IIS 6 server. I've got it to the point where I can browse a list of my repositories at http://localhost/hgrepo/hgwebdir.py. My hgweb.config contains [path]hgrepo = c:\hgrepositories** But when I click on one of the repository name. In this case its Babbet, I get the same page but when I examine the a...

Receiving UDP broadcasts on multihomed systems

I have a Windows XP machine with more than one network adapter. When I receive a UDP broadcast package from another machine that does not yet have a valid IP address, howcan I determine which network adapter received this package? I need to implement a kind on custom DHCP server... ...

Deciphering errors in upgrading a Visual C++ 6 project to Visual Studio 2008

I wanted to see if I could bring this defunct open source project called MouseTool up to date with Windows Vista. It's a dwell-clicker to help people (like myself) who experience pain when they click the mouse. This software simulates a click when the mouse pauses at a location on the screen. It seems like no one has touched this proje...

Why is iplRotate() not giving me correct results?

sigh I'm sorry to say that I'm using Intel IPL (Image Processing Library) in some image processing code I'm working on. This is the tale of my struggle with getting my images to rotate correctly. I have a source image. It has a size (w, h) which is not necessarily square. It is going to be rotated by angle theta. I've calculated the ou...