cannot open file 'comdlg.lib'

I've just installed MS VC++ 8.0, followed the instruction to install SDK update and tried to to build my Win32 console app project. Building output gave me an error message:

LINK : fatal error LNK1104: cannot open file 'comdlg.lib'

I checked directories and file locations. Everything corresponds with instructions to install PSDK. But when I try to find comdlg.lib, I find nothing. Maybe the problem is in project settings but I need help with this.

Thanks



Answer this question

cannot open file 'comdlg.lib'

  • l_d_allan

    comdlg is from old 16bit times. Use comdlg32!

  • prreddy

    But where does one set this, so the project doesn't automatically inlcude comdlg.lib
  • Bil Muh

    Martin,

    I tried your solution (linker->general->show progress-> display all progress messages (/VERBOSE)), and learned little. However I did link sucessfully by copying C:\Program Files\Microsoft Platform SDK\Lib\comdlg32.lib to *\comdlg.lib. It may not be pretty, but scribble linked and ran.

    JR


  • JerryCic

    Let the linker produce verbose output. Than you can see who want this lib.

    Are there #pragma comment(lib,"..") line in your code



  • cannot open file 'comdlg.lib'