选上project ---------general----------Use MFC in a Shared DLL 就好了 转载于:https://www.cnblogs.com/yqskj/articles/2219615.html