the order of linking libraries
A common compiling command is as follows: g++ a.cpp b.cpp -o app.exe -I include1dir -I include2dir -l libray1.a -l libray2.a -L libdir1 -L libdir2 The application is compiled out of […]
A common compiling command is as follows: g++ a.cpp b.cpp -o app.exe -I include1dir -I include2dir -l libray1.a -l libray2.a -L libdir1 -L libdir2 The application is compiled out of […]
You may often hear the sentence: a file is UTF-8 encoded. Occasionally, you may want to check if a file is UFT-8 encoded or not. In a UTF-8 encoded text […]
I downloaded an open source Qt project which uses Botan library. Specifically, the project includes Botan header files in its source files such as: include <botan/pipe.h> And the project links […]
We have learned how to simulate a mouse click using the SendMessage function. In fact, there are quite a few methods you can use to simulate mouse events. SendInput is […]
If you want to simulate a mouse click programatically, you must know the SendMessage function. To make your simulator work, you should understand the function well. First, the name is […]
You may see those guru programmers often use static_cast and dynamic_cast which are mysterious to you because you only use the implicit cast or C style explicit cast. So what […]
You can define a global variable in a dll, and define another global variable with the same name in the main program that loads the dll. The two global variables […]
mhook is a good library to set up Windows API hook. However it is developed under VC. You can Download the source code of mhook and uncompress the zip package, […]
We know that dll has a entry function: BOOL WINAPI DllMain(…) This function is called whenever the dll is loaded such as by LoadLibrary() function. We may do some initialization […]