Print Page | Close Window

Use dll in Visual studio C#

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=805
Printed Date: 12 May 24 at 4:01AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Use dll in Visual studio C#
Posted By: amble
Subject: Use dll in Visual studio C#
Date Posted: 31 Oct 07 at 9:33AM
How do I use the iSEDQuickPDF.dll in Visual Studio 2005?

When I try to add a reference to it I get this error.

A reference to 'C:\iSed\iSEDQuickPDF.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.

I thought the dll might need regestiring , but that resulted in this error.

iSEDQuickPDF.dll was loaded but the DllRegisterServer entry point was not found. This file can not be registered.

---
Added:

I found an old pdf with Tutorials
Using iSEDQuickPDF with C#
It tells me to make a wrapper

If you would rather use the DLL version of iSEDQuickPDF, find the iSED0433DotNet.cs file in the DLL .zip distribution. Compile
it into a managed code library:
csc /t:library /out:SEDTech.iSED.dll iSQP0433DotNet.cs

Where can I find the cs file?



Replies:
Posted By: chicks
Date Posted: 31 Oct 07 at 11:07AM
I don't know much about C#, but maybe you should try the ActiveX version (iSED.dll), which will have an entry point, and must be registered.


Posted By: marian_pascalau
Date Posted: 31 Oct 07 at 4:08PM
iSQDQuickPDF.DLL is not a COM server and you cannot add reference to this DLL (Interop Assembly). The only way to work with this DLL is using function prototypes with DLLImport attribute.
 
To use Interop DLL (this is the recommended way to use QuickPDF) you have to use the iSED.DLL. Register this file as COM Server and add a new COM Reference.
 
Best regards, Marian


Posted By: amble
Date Posted: 01 Nov 07 at 4:04AM
Thank you both marian and chicks.
I got it to work using iSED.dll



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