我的程序在设置成debug时,编译通过,执行没有问题.
但是release的时候,出现如下提示:
LINK : warning LNK4089: all references to "comdlg32.dll" discarded by /OPT:REF
并且执行弹出某些对话框的时候出现 内存不能为"read"的错误而中断执行!请问是什么问题?

解决方案 »

  1.   

    有些库是针对Debug的,而有些针对Release的,比如DirectShow编程时。楼主请看看是不是DLL的版本问题?
      

  2.   

    The linker discarded all packaged functions that referenced exports in dynamic-link library. As a result, dynamic-link library is not needed for execution of the image.You may want to consider removing references to dynamic-link library to speed up the build.Other occurrences of this warning can occur if an unused function in your code references a .dll export that the linker has discarded. Use /VERBOSE to see which of your functions the linker is discarding and then remove them from your code.