dll中要用mfc的东西 比如对话框 就得在建project时 选dll时 选择 regular dll with static mfc 或者选 mfc extension dll
要导入com库 在dll中建对话框时要打开Automation选项