Goal: to be able to build a cpp file with a CommonPropertySheetUIW function call properly on a Windows virtual printer driver
Problem: I'm getting the following error message in the latest build of Microsoft Windows DDK build utility:
Code:
4>uicore.obj : error LNK2019: unresolved external symbol _CommonPropertySheetUIW@16 referenced in function _DrvDocumentPropertySheets@8
4>c:\pdftron_vprint\pdfprinterdriver_v1.6\src\ui\objchk_wxp_x86\i386\pdfprinter_ui.dll : fatal error LNK1120: 1 unresolved externals
The problem with the function CommonPropertySheetUIW (http://msdn.microsoft.com/en-us/library/ms800925.aspx) is that it's included in comptsui.h, which I've included, and one of its parameters is a callback that is defined in a different cpp file than the one the build system is complaining about. Could it be b/c I'm not configuring the makefile settings properly as I found a few links on the internet that says the project settings being inappropriate causing some functions not being able to link properly. I'm trying to adapt the DDK's CPSUISAM example onto my trunk version of printer driver if it helps.