Print Page | Close Window

C# WPF UnlockKey() Problem

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=2345
Printed Date: 12 Dec 25 at 10:30AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: C# WPF UnlockKey() Problem
Posted By: draxen
Subject: C# WPF UnlockKey() Problem
Date Posted: 21 Jul 12 at 10:51PM
Hi folks,

I'm just testing out the trial version of QuickPDF library.
I've got the dll version working perfectly in C# winforms but for some reason in a C# WPF project the function qp.UnlockKey() always returns 0. Does QuickPDF library work correctly under WPF?
I assumed it would work in exactly the same way as in the winform version.

In the code snippet below, the msgbox "License unlock failed."  is always displayed in a WPF project.

Any help you can provide would be much appreciated.
- Drax


PDFLibrary qp = new PDFLibrary(@"C:\Program Files (x86)\Quick PDF Library\DLL\QuickPDF64DLL0816.dll");

qp.UnlockKey("My trial key");
            if (qp.Unlocked() == 0)
                MessageBox.Show("License unlock failed.  Please update your key in the form1.cs source code");




Replies:
Posted By: draxen
Date Posted: 21 Jul 12 at 11:04PM
Doh. stupid noob mistake.
I was referencing the 64 bit DLL in a 32 bit project.




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