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!
Newbie question: iSED and .NET |
Post Reply |
Author | |
groston
Beginner Joined: 14 Dec 08 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 14 Dec 08 at 4:50PM |
Not really a newbie, but haven't used this for years.
Would someone please summarize the steps for using the DLL with a .NET application in such a manner that the application can be easily moved to another computer. (In this context, 'easily' means without having to 'install' the DLL on the target machine.) Many thanks. Edited by groston - 14 Dec 08 at 6:48PM |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
It's not the best way but you can use this "not-.NET-dll" in .NET-applications, too. Please read here about the "how to" and "what to do": http://msdn.microsoft.com/en-us/library/26thfadc.aspx Cheers, Ingo |
|
Jim Sullivan
Team Player Joined: 10 Nov 05 Location: United States Status: Offline Points: 36 |
Post Options
Thanks(0)
|
Has anyone done this? I'd really like to see some actual examples. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Jim!
What about you?
Then we have here some examples for all users. It's a good idea. Please do it.
Cheers, Ingo
|
|
Jim Sullivan
Team Player Joined: 10 Nov 05 Location: United States Status: Offline Points: 36 |
Post Options
Thanks(0)
|
If nobody has done it, I will be trying it myself. I will return and update my status.
|
|
Jim Sullivan
Team Player Joined: 10 Nov 05 Location: United States Status: Offline Points: 36 |
Post Options
Thanks(0)
|
I've got this working in my ASP.NET application. You use the iSQP0511DotNet.cs file from the DLL zip. You import the DLL into your application. In my app, it goes in the bin folder. Then you use the class name from the cs file to create your classes. The application will find the dll in the local folder and be able to use the functions without the DLL being registered.
|
|
Jim Sullivan
Team Player Joined: 10 Nov 05 Location: United States Status: Offline Points: 36 |
Post Options
Thanks(0)
|
I've found a major issue with this use.
The DLLImport function from the C# file requires the use of "static". If you convert to VB, it uses "shared". This means that every instance of a QuickPDF that you use will share the same memory, which is a disaster (for me anyway). Here's some code:
dim obj1 as new QuickPDF
dim obj2 as new QuickPDF
obj1.unlockkey("key")
obj2.unlockkey("key")
obj1.drawtext(100,100,"Hello World")
obj2.drawtext(100,200,"Goodbye World")
----------------
In this case, both of your objects will have both "Hello World" and "Goodbye World".
I tried using Declare instead of dllimport, but I got the same result.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Jim!
This is still one of the main problems with the rising of .NET... I've posted it already before but perhaps you didn't see it. You can use a non static dll with C#, too. Please read here: http://msdn.microsoft.com/en-us/library/26thfadc.aspx from the ... .NET Framework Developer's Guide in chapter ... Consuming Unmanaged DLL Functions Cheers, Ingo Edited by Ingo - 11 Mar 09 at 2:45PM |
|
Jim Sullivan
Team Player Joined: 10 Nov 05 Location: United States Status: Offline Points: 36 |
Post Options
Thanks(0)
|
The link seems to say that you can only use static (or Shared for VB) for a dll called this way. I'm trying to read through it, but if you understand differently, can you point me to the right place?
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Jim!
In the new test-package you which you can download from Debenu there's a cs-file included to use the unmamaged dll with C#. Cheers, Ingo |
|
Jim Sullivan
Team Player Joined: 10 Nov 05 Location: United States Status: Offline Points: 36 |
Post Options
Thanks(0)
|
I may be really thick here, but I think that's what I've downloaded. That has the "static" calls listed. I think that's what I used where I ran into the problem.
|
|
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