IT/프로그래밍 관련 98

Improve C++ performance in debug mode with inline expansion

출처 - http://www.avid-insight.co.uk/2012/07/improve-cpp-performance-in-debug-mode-with-inline-expansion/ When you’re dealing with an intensive real-time application, such as a game or simulation, a common problem is that debug builds in C++ can run much slower than release builds. This difference in run-time behaviour means it can be hard to reproduce and analyse bugs and other problems. There ar..

C# 키보드 후킹 (샘플)

Just hook! 첨부된 파일을 먼저 확인하시라. 컴파일을 수행하고 Hook! 버튼을 누르면 해당 폼에서뿐만 아니라 전체 윈도우에서 delete, tab, esc 키 등이 입력되지 않는 것을 확인할 수 있다. (alt + tab 등도 tab키가 입력되는 조합이므로 입력되지 않는다) 실제 코드를 살펴보자. (Form1.cs 참조) KeyboardHooker의 사용 방법은 실로 간단한데, 단순히 KeyboardHooker.HookedKeyboardUserEventHandler 딜리게이트를 처리할 수 있는 이벤트를 만들고, 이벤트 핸들러를 KeyboardHooker.HookedKeyboardUserEventHandler에 등록하면 된다. private void Form1_Load(object sender, ..

Dumpbin - Checking Your Application Compiled Platform (x86 vs x64)

dumpbin is a program in Visual Studio Tools that helps you to display information in binary file. I find it useful to check whether a dll is build for x86 or x64. Corflags is good for checking .exe, and soon, you will realize that it is not effective on checking dll files. Especially for unmanaged dll, you will see this error message corflags : error CF008 : The specified file does not have a va..