Please do not double post. You asked this question a week ago and got a reasonable answer. ( http://www.cplusplus.com/forum/general/34363/ ) If that did not help you, follow up on that thread and explain what about that reply did not help and then ask for what you need from us.
Also, in the future, such questions are best asked in the Windows Programming forum. This is not really a "General C++ Programming" question.