I am using MFC. If there's a better way to do it, I'm all ears. Thanks