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 - Instance Creation
  FAQ FAQ  Forum Search   Register Register  Login Login

Instance Creation

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

Joined: 20 Aug 14
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote justincolangelo Quote  Post ReplyReply Direct Link To This Post Topic: Instance Creation
    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.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 22 Aug 14 at 7:27PM
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

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