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 > General Discussion
  New Posts New Posts RSS Feed - Use of 64-Bit
  FAQ FAQ  Forum Search   Register Register  Login Login

Use of 64-Bit

 Post Reply Post Reply
Author
Message
Jim Sullivan View Drop Down
Team Player
Team Player


Joined: 10 Nov 05
Location: United States
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jim Sullivan Quote  Post ReplyReply Direct Link To This Post Topic: Use of 64-Bit
    Posted: 26 Oct 11 at 3:23PM
So I see that there are 2 separate DLL files, one for 32-bit and one for 64-bit.  I have an ASP.NET application that I distribute to several customers.  Some of them will want to use the 32-bit and some the 64-bit version.  In fact, at least one of them will want to run 64-bit on one server and 32-bit on another server.
 
Is there a way to compile my application once and just have the customer swap in the proper library?  My industry (healthcare) is heavily regulated and if I have to compile two separate versions of my software, it will double my testing since I have to run complete validations every time I compile.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 27 Oct 11 at 12:45AM
[Updated] Normally 32 and 64 bit EXE files are totally different and you cannot have a single EXE that runs in either 32 bits or 64 bits depending on the host OS.  

Apparently with C# you can select your EXE to target Any CPU.  There following code in the C#  QuickPDFDLL08xx.cs file should allow the CS file to choose the correct DLL at runtime.

string DLLFileName;
if (IntPtr.Size == 4)
{
  DLLFileName = "QuickPDFDLL0813.dll";
}
if (IntPtr.Size == 8)
{
  DLLFileName = "QuickPDF64DLL0813.dll";
}
There is still the issue that you have two separate DLL files which could have different bugs.  In fact we have found such a bug already in the QPL code so you would need to do some testing of both versions when it comes to testing the QPL functions.


Andrew.


Edited by AndrewC - 27 Oct 11 at 8:47AM
Back to Top
Dan View Drop Down
Team Player
Team Player
Avatar

Joined: 21 Oct 11
Location: US
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dan Quote  Post ReplyReply Direct Link To This Post Posted: 08 Nov 11 at 10:51PM
I'm doing it a little different. I renamed the dll to QuickPDFDLL.dll and placed that in a Bin folder I created on my D drive. Just take the appropriate dll version, 32 or 64 bit, and copy it to the system then rename it. My code looks like:

Dim DLLPath As String = "D:/Bin/QuickPDFDLL.dll"
Dim pdf As PDFLibrary = New PDFLibrary(DLLPath)

If Not pdf.LibraryLoaded() Then
     Throw New Exception("QuickPDF Library Not Loaded from location: " & DLLPath)
End If

If pdf.UnlockKey("Your Key") = 0 Then
     Throw New Exception("Did not unlock QuickPDF")
End If

As Andrew pointed out there could be a need to test each version separately to comply with HIPAA regulations. I can't imagine you'd need to test too exhaustively as it's the data you need to protect, right? Access controls around the data should protect you from about any difference in the versions.

Dan

Edited by Dan - 08 Nov 11 at 11:10PM
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