I want to integrate QuickPDF as LIB Edition into my App. To get familiar with QuickPDF I wanted to start with the HelloWorld sample, but this uses the DLL Edition. So I made some changes to the Project: - change QuickPDFDLL0721.h to QuickPDFLIB0723.h - add QuickPDFLIB0723.lib and crypt32.lib as Libraries - remove QuickPDFDLL0721.cpp - added the 3 res-files to the project - and in the OnBnClickedHelloWorld I threw out the original code and inserted the code from the GettingStarted documentation: >>> QUICKPDFLIB0723_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL); int InstanceID = QuickPDFCreateLibrary(); if (QuickPDFUnlockKey(InstanceID, "XXXsamplelicenceXXX") == 1) { QuickPDFDrawText(InstanceID, 100, 500, "Hello world"); QuickPDFSaveToFile(InstanceID, "C:\\out\\HelloFromLIB.pdf"); } QuickPDFReleaseLibrary(InstanceID); QUICKPDFLIB0723_DllMain(GetModuleHandle(NULL), DLL_PROCESS_DETACH, NULL); <<<
When I produce this project (with "Visual Studio 2010", Debug mode) I get several warnings and "unresolved externals": >>> Warning 1 warning LNK4049: locally defined symbol _strlen imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 2 warning LNK4049: locally defined symbol _vsprintf imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 3 warning LNK4049: locally defined symbol _printf imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 4 warning LNK4049: locally defined symbol _ceil imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 5 warning LNK4049: locally defined symbol _floor imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 6 warning LNK4049: locally defined symbol _memcpy imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 7 warning LNK4049: locally defined symbol _memset imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 8 warning LNK4049: locally defined symbol _realloc imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 9 warning LNK4049: locally defined symbol _free imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 10 warning LNK4049: locally defined symbol _calloc imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Warning 11 warning LNK4049: locally defined symbol _malloc imported QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 12 error LNK2001: unresolved external symbol __imp__strncpy QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 13 error LNK2001: unresolved external symbol __imp___ftol QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 14 error LNK2001: unresolved external symbol __imp__fprintf QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition Error 15 error LNK2001: unresolved external symbol __imp__pow QuickPDFLIB0723.lib(QuickPDFLIB0723.obj) Hello World - LIB Edition <<< I tried to twiddle around with some libraries (msvcrtd.lib etc.) but I only got the problems to get bigger. Who has a good idea how this problem can be solved?! Thank you in advance
|