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!
![]() |
Instance Creation |
Post Reply ![]() |
Author | |
justincolangelo ![]() Beginner ![]() Joined: 20 Aug 14 Location: United States Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 20 Aug 14 at 10:30PM |
I am unable to create an instance using PDFLibrary in C#.
The dll lives at c:/the project directory/lib/DebenuPDFLibraryDLL1016.dll I generate the path and also tried hard coding it. var dllPath = AppDomain.CurrentDomain.BaseDirectory + "Lib\\DebenuPDFLibraryDLL1016.dll"; I've included the import file: DebenuPDFLibraryDLL1016.cs Inside the constructor, dll.dllHandle is always 0. The object is never instantiated. dll = new DLL(dllFileName); if (dll.dllHandle != IntPtr.Zero) { instanceID = dll.DebenuPDFLibraryCreateLibrary(); dll.RegisterForShutdown(instanceID); } else { // always gets here dll = null; } Does anyone know why this would happen aside from having the wrong location of the dll? I have uninstalled / reinstalled the quick pdf data a few times. |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Justin,
i've made similar experiences. Try to put the dll into system32 or syswow64. If your .net-app is made as 64 bit and if the qp.dll is 64 bit then it should be on 64-bit-systems in system32. If your .net-app is made as 32 bit and if the qp.dll is 32 bit then it should be on 64-bit-systems in syswow64. Bit-architecture should always the same for app and dll. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
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