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 - Issue Finding DLL - C# Sample
  FAQ FAQ  Forum Search   Register Register  Login Login

Issue Finding DLL - C# Sample

 Post Reply Post Reply
Author
Message
Cefeg View Drop Down
Beginner
Beginner
Avatar

Joined: 16 Feb 16
Location: California
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cefeg Quote  Post ReplyReply Direct Link To This Post Topic: Issue Finding DLL - C# Sample
    Posted: 16 Feb 16 at 10:15PM
Using VS 2015 and Windows 10 Pro. We have paid license to Quick PDF Library1115. Downloaded the C# sample code. Copied both DebenuPDFLibraryDLL11115.dll and .cs to programs folder with Form1.cs, designer and Program.cs. The project uses .Net framework 4.5.2.

Compiling is error free, but on running this always falls through If (qp.LibraryLoaded()) with the error Could not locate Debenu Library...

Any suggestions to find the library? Could there be an issue with VS 2015 and Win 10 and this sample?


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 17 Feb 16 at 9:57PM
Hi Cefeg,

your C#-project will be in debug- or release-mode and the compiling option will be "any cpu" (=64 bit) or "x86" (=32 bit).
So this would mean for 32 bit that the dll should be in "...\bin\x86\debug\" or in "...\bin\x86\release\".
Another option was the common place syswow64 for a 32-bit-dll (on a 64 bit system) or system32 for a 64-bit-dll (on a 64 bit system) or system32 for a 32-bit-dll (on a 32 bit system).

Cheers and welcome here (and good luck ;-)
Ingo

Cheers,
Ingo

Back to Top
Cefeg View Drop Down
Beginner
Beginner
Avatar

Joined: 16 Feb 16
Location: California
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cefeg Quote  Post ReplyReply Direct Link To This Post Posted: 18 Feb 16 at 12:03AM
Hi Ingo,

Placing the DLL in bin\debug worked just fine. Thanks so much. It is always the simple solutions that solve the puzzling issues.

Thanks for your welcome and thanks again for your help. Lots of points to you.

Clark
Smile
Back to Top
Cefeg View Drop Down
Beginner
Beginner
Avatar

Joined: 16 Feb 16
Location: California
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cefeg Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 16 at 2:32AM
Hi,  The locations for the QuickPDF DLL mentioned above worked fine until we upgraded to Windows 10, VS 2015 Community Edition, .NET 4.6.1 and switched to Release configuration. No problem in Debug config. But in Release config we continually get the License Unlock error or Could not locate the DLL error. 

The DLL is in the bin\Release folder as mentioned above.

Does the DLL in line below require a path? I've tried to no avail.
PDFLibrary qp = new PDFLibrary("DebenuPDFLibraryDLL1115.dll");

Regards, Clark
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 11 Mar 16 at 10:05PM
Hi Clark,

how are the settings in VS (any cpu or x86)?
These settings are important finding the dlls (in the path with x86 or the 64-bit-release-path).
What you can do always is copying the dll (are you using 32- or 64-bit-dll?) into the syswow64 or system32.

Cheers,
Ingo

Back to Top
Cefeg View Drop Down
Beginner
Beginner
Avatar

Joined: 16 Feb 16
Location: California
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cefeg Quote  Post ReplyReply Direct Link To This Post Posted: 12 Mar 16 at 1:06AM
None of the above works with Release version. Always works with Debug. Using Any CPU. The DLL is in the project folder, bin\debug and bin\release folders. Also the DLL is in System32 and SysWow64. I am running VS Community Edition on Windows 10/64 with a 64-bit machine. Have not changed the code from the Demo except adding our unlock key.

A Reference to the DLL cannot be made. Reason is Not found, check the path.
This is the PDF Library path I am using;
        PDFLibrary qp = new PDFLibrary("DebenuPDFLibraryDLL1115.dll");

Is this path correct? Any ideas?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 12 Mar 16 at 1:46PM
Hi Clark,

it depends on what type of dll you're using.
The 32-bit- or the 64-bit-version?
You are on a 64-bit-system so a 32-bit-dll should be in the syswow64-path and a 64-bit-dll should be in the system32-path (copying the one dll in both path won't be a good solution ;-)
In VS it's the same:
32-bit-dlls into the path for 32-bit-dlls and 64-bit-dlls into the path for 64-bit-dlls.
Which paths in VS will be relevant you can control with the settings what you wanna build... a 32-bit-app or a 64-bit-app.
A 32-bit-dll will never work with 64-bit-settings in VS.
 
Cheers,
Ingo

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