windows-7

Drawing video with text on top

拥有回忆 提交于 2019-12-30 08:54:28
问题 I am working on an application and I have a problem I just cant seem to find a solution for. The application is written in vc++. What I need to do is display a YUV video feed with text on top of it. Right now it works correctly by drawing the text in the OnPaint method using GDI and the video on a DirectDraw overlay. I need to get rid of the overlay because it causes to many problems. It wont work on some video cards, vista, 7, etc. I cant figure out a way to complete the same thing in a more

Drawing video with text on top

穿精又带淫゛_ 提交于 2019-12-30 08:54:10
问题 I am working on an application and I have a problem I just cant seem to find a solution for. The application is written in vc++. What I need to do is display a YUV video feed with text on top of it. Right now it works correctly by drawing the text in the OnPaint method using GDI and the video on a DirectDraw overlay. I need to get rid of the overlay because it causes to many problems. It wont work on some video cards, vista, 7, etc. I cant figure out a way to complete the same thing in a more

Grails is not recognized as an internal or external command (Windows 7)

Deadly 提交于 2019-12-30 08:33:13
问题 I don't know what I'm doing wrong... First I've downloaded, and unzipped the folder in C:\ : Then, set it as a user variable : And added it to my PATH : And even after restarting cmd, when I check grails -version I get this : grails is not recognized as an internal or external command, operable program or batch file. What is wrong? Thanks for your help. 回答1: First try this one on CMD commandline type echo %GRAILS_HOME% Then type path and see if the grails paths is something like : C:\Windows

Serial Port (RS232) communication with Visual C++ 2010

非 Y 不嫁゛ 提交于 2019-12-30 07:50:44
问题 I have to write a program in Visual C++ 2010 to communicate via Serial Port (RS232) in Windows 7 32 bit. Can Someone help me to find correct example? 回答1: Serial Communications: http://msdn.microsoft.com/en-us/library/ff802693.aspx This article still remains actual after so many years... Code sample included. 回答2: Here it is a two samples of the same program, one for visual studio 2013 and the other for minGW in Eclipse in Windows 7 32 bits for visual studio: stadfx.h #pragma once #include

What is the best git config set up when you are using Linux and Windows?

一个人想着一个人 提交于 2019-12-30 06:49:47
问题 I am a bit confused with core.eol, core.autocrlf, core.safecrlf for git config. http://git-scm.com/docs/git-config I am using Ubuntu and Widows. I had ^M, and other issues before. Could anyone suggest the best git config setups for this problem? Thanks in advance. 回答1: As detailled in Git on Windows (msysgit) - Unix or DOS line termination, I would use: git config --system core.autocrlf false That would avoid any automatic eol transformation (See "Git on Windows: What do the crlf settings

Debug Program option in Windows 7

浪尽此生 提交于 2019-12-30 06:47:33
问题 I noticed that in Windows 7, unlike XP, if a program crashes that I am debugging in Visual Studio 2008, I don't get the option to Debug the program. Rather, it just says that the program crashed and Microsoft is looking for a solution. Right now, if my program throws an exception, I can't return back to the debugging session in VS 2008, the program just quits. Is there a way around this? EDIT: Here is what the old debug window looked like in XP, but I can't get this in Win7 and can't debug my

Debug Program option in Windows 7

别等时光非礼了梦想. 提交于 2019-12-30 06:47:01
问题 I noticed that in Windows 7, unlike XP, if a program crashes that I am debugging in Visual Studio 2008, I don't get the option to Debug the program. Rather, it just says that the program crashed and Microsoft is looking for a solution. Right now, if my program throws an exception, I can't return back to the debugging session in VS 2008, the program just quits. Is there a way around this? EDIT: Here is what the old debug window looked like in XP, but I can't get this in Win7 and can't debug my

Windows CE 5.0 emulator needed

大兔子大兔子 提交于 2019-12-30 06:45:34
问题 I need an emulator for Windows CE 5.0 to test an embedded device (not PDA or smartphone) application that I am developing. This is what I have already tried: Visual Studio 2008 Pro includes an emulator. Unfortunately, it does not include a Windows CE image (only Windows Mobile and Smartphone). Yes, there is a difference, see the screenshots here. Windows CE includes a "start button", windows that can be minimized, moved around etc. There is a Windows CE Device Emulator available from

How to get process id by its service name with a script to variable

白昼怎懂夜的黑 提交于 2019-12-30 05:44:05
问题 I have service named WinDefend and it runs on process svchost.exe There other many svchost.exe processes and I need to find a way to get its ID. when I run tasklist /svc I can see: I am not sure how can I get it. I found this command but when I tried the select "PID" it gave me empty column. I need to get the PID of the process to variable. 回答1: tasklist is just returning text, not actual objects that have properties you can access. You can use WMI to get this information instead: $id = Get

Programmatically enable / disable multitouch finger input?

走远了吗. 提交于 2019-12-30 05:19:10
问题 I have a multitoch-enabled tablet PC running Windows 7. However, when using the stylus pen and getting too far away from the display, I often accidently hit it with my fingers which causes unwanted mouse-clicks. The solution is navigating to "Control Panel - Pen- and Finger Input - Finger Input" and deactivate the checkbox "Use the finger as an input device" (all titles translated so they might be different on an English windows). Now I am wondering whether I can do this programmatically, too