added error function
Merge branch 'master' of https://github.com/shujidan/wingui

Conflicts:
	main.cpp