我想把程序给老师看看,老师那里没有vc,我在设置里选择
Use MFC in Static Library
编译后提示:
--------------------Configuration: FinalReport - Win32 Debug
(4) : warning C4651: '/D_DLL' specified for precompiled header but not for current compile
C:\Documents and Settings\baryjim\桌面\FinalReport13\FinalReportView.cpp(4) : warning C4651: '/D_AFXDLL' specified for precompiled header but not for current compileFinalReportView.obj - 0 error(s), 2 warning(s)
在没有vc的环境下运行他的.exe文件,说我缺少MFC42D.DLL 1,请问怎么才能运行。
2,为什么我的配置里面只能选择DEBUG,而不能选择Release.到底怎么回事?
3,Release版本是不是就是把debug的一些调试的代码清除出去,使程序更加优化,代码更小
Use MFC in Static Library
编译后提示:
--------------------Configuration: FinalReport - Win32 Debug
(4) : warning C4651: '/D_DLL' specified for precompiled header but not for current compile
C:\Documents and Settings\baryjim\桌面\FinalReport13\FinalReportView.cpp(4) : warning C4651: '/D_AFXDLL' specified for precompiled header but not for current compileFinalReportView.obj - 0 error(s), 2 warning(s)
在没有vc的环境下运行他的.exe文件,说我缺少MFC42D.DLL 1,请问怎么才能运行。
2,为什么我的配置里面只能选择DEBUG,而不能选择Release.到底怎么回事?
3,Release版本是不是就是把debug的一些调试的代码清除出去,使程序更加优化,代码更小
98是在system目录下
运行时如果缺少DLL,会有提示的,到时你不就知道了。 实在不行用SPY,把用到的DLL都找出来。
但是MFC42.DLL在windows系统中有,那是安装操作系统就有的
所以你在release模式下build成的exe文件不用静态链接也可以运行于没有安装vc的机器
当然你不要用第三方控件或是第三方dll
这句话正确。我这样做的exe在只有操作系统的工控机上都没有问题。