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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - LNK 2001 issue. Trial license.
  FAQ FAQ  Forum Search   Register Register  Login Login

LNK 2001 issue. Trial license.

 Post Reply Post Reply
Author
Message
alcocoala View Drop Down
Beginner
Beginner


Joined: 02 Jun 17
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote alcocoala Quote  Post ReplyReply Direct Link To This Post Topic: LNK 2001 issue. Trial license.
    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
Back to Top
tfrost View Drop Down
Senior Member
Senior Member


Joined: 06 Sep 10
Location: UK
Status: Offline
Points: 437
Post Options Post Options   Thanks (0) Thanks(0)   Quote tfrost Quote  Post ReplyReply Direct Link To This Post Posted: 03 Jun 17 at 3:33PM
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store