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, […]

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 […]

We know that a variable will be substituted with its value in a “” delimited string such as: $var1=”var1″; echo “this is $var1″; will print “this is var1″. This variable […]

I had a case to use regexp to match unicode codes of chinese characters. The unicode codes are of the form \uxxxx where x is hexidecimal digit. To match them, […]

In a php file, you can define a string using ” ” or ‘ ‘. You specify what characters the string consists of in between ‘ ‘ or ” “such […]

The following code can print the current web page to an image. page()->setViewportSize(page()->mainFrame()->contentsSize()); QImage *image=new QImage(page()->mainFrame()->contentsSize(), QImage::Format_ARGB32); QPainter *painter = new QPainter(image); page()->mainFrame()->render(painter); image->save(QString(“images/%1.png”).arg(name));   However there are some issues […]