css memo
I always forget the difference between the grouping selector and the descendant selector. grouping selector: h1,h2 {…} descendant selector: h1 em {…} child selector(like descendant selector but only selects the […]
I always forget the difference between the grouping selector and the descendant selector. grouping selector: h1,h2 {…} descendant selector: h1 em {…} child selector(like descendant selector but only selects the […]
What is the xml root element? The first tag except the “<?xml version=”1.0″ encoding=”ISO-8859-1″?>” and the <!DOCTYPE …> is the root element. How to get the xml document root in […]
Some concepts of Qt Thread are subtle enough to confuse most newbies. You may have read articles about “the right way” and “the wrong way” to use Qt thread, and […]
We know that . in a regular express means “any character”. But it is not true when . is in []. A . in [] just means . itself. If […]
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 […]
One of the methods to run your code in another process(remote process)(so-called code injection) is using Windows Hook. The process is as follows: You write your code in a function […]
Inline assembly in VC is very simple. You embed the assembly code in C/C++ code as if you are writing a pure assembly language file. For example, the following inline […]
I am compiling a dll with 3 .c files and one .cpp file using mingw gcc, when this error occurs “undefined reference to `__gxx_personality_sj0′”. The reference comes from the .cpp […]