Okay... you might try asking in the MFC forum, here[^]. This is the Mangaged C++ forum. And when you ask there, you might consider including more information. "can not seem to make it work" is not a very helpful description of your problem.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012