windows

I need to develop a project involving hardware which should also work the same on Windows as well as Macs. Whats the way forward?

Whats the best approach (read painless) that I could take? Primarily, the application needs to record the webcam video + mic recording on the disk and compress the video using ffmpeg (or something similar). So there is hardware involved + running a separate process for encoding. I was seriously considering Adobe AIR - but I read on the...

Capturing Live HD Video on Windows

I would like to capture Live HD video onto a Windows PC. I need access to timecode info for live video analysis. This was easy on DV. ...

How to hijack the Caps Lock key for Cut, Copy, Paste keyboard operations

Here is what I am trying to accomplish: To Copy, press and release Caps Lock ONCE To Paste, press and release Caps Lock TWICE, quickly To Cut, press Ctrl+Caps Lock The reason I want to do this is often times i find my self looking down to press the correct X/C/V key, since they're all next to each other (atleast on a QWERTY keyboard)...

Is there any Windows Azure Local Development environment?

I remember I stumbled upon a page once that said Microsoft has released an application that allows you to test your client applications for windows azure locally. The application would act as mock windows azure environment and you could use local end points for connecting to it. Does anyone know which application is it or what is its na...

How to eliminate flicker on a sizable dialog?

I've got a sizable dialog with one child window - a list control. When the dialog is re-sized, I re-size the list control appropriately; it is basically anchored to all 4 edges of the dialog. The problem is that during sizing there is noticeable flicker around the edges of the list control, especially when the scroll bars are present. ...

Why isn't there a Windows.Forms like program for C++ (is there?)

I don't think there is any program like VS Windows.Forms for C++. Now I know that "Windows.Forms" are in themselves a C# "thing", but it eludes me why no one has put together a similar graphical construction interface for C++ Windows GUIs. Am I just not aware of it/them? Should I try to make one (that'd be a challenge, for me anyway, bu...

add tar/gzip to windows command line

As the title says - anyone know of a method to add tar/gzip to the command line in Windows? I've installed Cygwin - but don't know if I have to add something to the PATH env variable to get tar as a cmd option ...

Optimum file buffer read size?

I am writing an application which needs to read fairly large files. I have always wondered what's the optimum size for the read buffer on a modern Windows XP computer. I googled and found many examples which had 1024 as the optimum size. Here is a snippet of what I mean: long pointer = 0; buffer = new byte[1024]; // What's a good size...

how to reset the interactions window in dr java?

this is the code that i am working on... i would like to know how to reset the interactions window after every question is asked so that the window is clear for the next question to be shown to the user but i do not want the Score to be reset either so that i can display the score at the end. iam looking for the correct syntax and code ...

Determine Genuine Windows Installation in C#

If I wanted to determine if a user had a genuine copy of windows, how could I do that in C#? Can I integrate with Windows Genuine Advantage? ...

Windows ETL Trace File Format?

I have a written an ETW provider which is used by my system to log opaque blobs of binary data using the TraceEvent API function. My system is essentially a high throughput event processing system and I want to be able to (cheaply) capture the serialised state of certain objects as they pass through the system. This will give me a replay...

MFC localization not working with MUI install of Windows 7

OK, so we're writing our MFC application to make use of the built-in localization support with satellite DLL's since MFC 7. Everything seem to be working fine, except that my Windows 7 Enterprise Edition install with MUI support and using a Swedish UI instead of an English UI still displays the English UI in our application. The applica...

C++ Read from shared memory

Hi, I want to read status information that an application provides via shared memory. I want to use C++ in order to read the content of that named shared memory and then call it with pinvoke from a C#-class. From the software I know that it has a certain file structure: A struct STATUS_DATA with an array of four structs of SYSTEM_CHARA...

How to call WSDL2JAVA from ant with whitespaces in my path

HI guys! I try to call Axis2 WSDL2JAVA in my ant file to create a WSDL client. But it's broken because I have whitespaces in my path (I'm on Windows...). This is my ant <property name="wsdl.file" location="C:\path with whitespaces\project\subdir\my.wsdl"/> ... <target name="generate.client" depends="Clean.Client"> <java classname=...

How to retrieve FQDN of the current host on Win32?

What's an easiest reliable way to retrieve the fully qualified domain name of the current host in Win32? I've tried calling gethostname(), but it returns a NetBIOS name. ...

Windows OS Architecture Book

Hi, I have a background in programming and have done a little .NET but I feel that I would benefit from improving my understanding of the Windows Architecture. Can anyone recomend a good book that discusses the Windows Operating System from a technical perspactive, particulary it's architecture/design and how it works. Im not looking for...

How to start a process on a remote machine in C++ under Windows

Hi! I'm using Dev-C++ under Windows. My question is how can i start a process on a remote machine? I know that PsExec can do that, but if it's possible, i want to avoid to use it. If someone can give some example code, i would appreciate it :) Thanks in advance! kampi ...

Why does Windows not allow WinSock to be started while impersonating another user

Using my own program or others I can't get winsock to run when calling if the process is created with CreateProcessWithLogonW or CreateProcessAsUserW. It returns this error when I create the socket: WSAEPROVIDERFAILEDINIT 10106 Service provider failed to initialize. The requested service provider could not be loaded or initiali...

VB6 GUI not working in multithreaded COM environment

I have a VB6 COM client that makes calls to an inprocess STA ATL/COM server. One of the Server methods, X, can take a while to finish so I need to be able to cancel it. What I tried was to run the method code in a new thread and include another method, Y, that does a timed WaitForSinleObject. So the client first calls X then goes into a ...

Does Windows support metadata for every file?

I know things like images, music, videos support metadata. My idea is that I want to write a download manager that adds info to the files I download: the URL I downloaded it from, the date and time I downloaded it, possibly some more. For this to work I need to add info for more than just photos and videos. I could just save a hidden .XM...