跟着孙鑫vc视频做,做到dll类的导出时,之前的所有步骤都没有问题
但运行test程序,编译不通过,报如下错误:
E:\c++workplace\DllTest\DllTestView.cpp(119) : error C2065: 'Point' : undeclared identifier
E:\c++workplace\DllTest\DllTestView.cpp(119) : error C2146: syntax error : missing ';' before identifier 'pt'
E:\c++workplace\DllTest\DllTestView.cpp(119) : error C2065: 'pt' : undeclared identifier
E:\c++workplace\DllTest\DllTestView.cpp(120) : error C2228: left of '.output' must have class/struct/union type看过那个视频的人肯定比较清楚
MFC中就两句话:
Point pt;
pt.output(5,3);用dependency查看dll导出函数没有问题,不知道什么原因,求解!!!