Print Page | Close Window

LNK 2001 issue. Trial license.

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3472
Printed Date: 27 Apr 24 at 11:42PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: LNK 2001 issue. Trial license.
Posted By: alcocoala
Subject: LNK 2001 issue. Trial license.
Date 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!





Replies:
Posted By: tfrost
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk