How Can I port whole RI on MFC?

I've spent all most a week to port RI on MFC!!! I don't know how I can solve this problem...

please help me!;;