Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
LNK 2001 issue. Trial license. |
Post Reply |
Author | |
alcocoala
Beginner Joined: 02 Jun 17 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 02 Jun 17 at 3:52PM |
Hi there!
Now I try Debenu PDF library and want to creante a simple PDF render. Here's my code into main fuction (CPP):
DEBENUPDFLIBRARYLIB1312_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL); int InstanceID = DPLCreateLibrary(); if (DPLUnlockKey(InstanceID, L"my_license") == 1) { DPLLoadFromFile(InstanceID, wpath, 0); DPLRenderPageToFile(InstanceID,72, 1, 0, wname); } DPLReleaseLibrary(InstanceID); DEBENUPDFLIBRARYLIB1312_DllMain(GetModuleHandle(NULL), DLL_PROCESS_DETACH, NULL); I Link to project in lib path: DebenuPDFLibraryLIB1312.lib DebenuPDFLibraryCMap.res DebenuPDFLibraryColorProfiles.res DebenuPDFLibraryDingbats.res DebenuPDFLibraryGlyphList.res and add dependency into include path: DebenuPDFLibraryLIB1312.h In the project folder I add: DebenuPDFLibrary64DLL1312.dll The project building in Debug x64, runtime library I set to /MDd and character set Use Multi-Byte Character Set When I try bult it I get: LNK2001: unresolved external symbol DPLRenderPageToFile LNK2001: unresolved external symbol DPLReleaseLibrary LNK2001: unresolved external symbol DPLLoadFromFile LNK2001: unresolved external symbol DEBENUPDFLIBRARYLIB1312_DllMain LNK2001: unresolved external symbol DPLCreateLibrary LNK2001: unresolved external symbol DPLUnlockKey I try different runtime, debug mode I get almost the same. What can be wrong? Thank you! Edited by alcocoala - 02 Jun 17 at 3:59PM |
|
tfrost
Senior Member Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
Post Options
Thanks(0)
|
Disclaimer: I do not use the DLL interface. But since there is only a single LIB file supplied, my guess is that it is a 32-bit library. Since you are trying to build a 64-bit app, I think you need to use the two files from DLL\Import\CPlusPlus and add the .cpp to your project, not the .LIB. There are two different .h files with the same name and you do not say which you are using.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store