Hi Peter:
Thanks for the reply. We are going nuts over this.
Here are more details.
1. Created windos application.
2. Added reference to this COM dll.
3. Here is the code:
Dim aPDF As aspPDF.EASYPDFClass
aPDF = New aspPDF.EASYPDFClass()
aPDF.AddText("asdsdsa")
It creates the instance successfully, but fails at last
line with the message below:
An unhandled exception of
type 'System.Runtime.InteropServices.COMException'
occurred in WindowsApplication1.exe
Additional information: Catastrophic failure.
The dll is a aspEasyPdf dll which allows creating PDF
documents.
Thanks.
- D.J.
-----Original Message-----
Hi Damaji,
Can you post more information about your project for me
to reproduce theproblem?
I would like to know what is the "dll" used for.
Have you used the dll in a legacy VB or C/C++ program?
Did it work well?To narrow down the problem, can you try to create a new
console project ora windows project ( if the dll is GUI based) to reference
the dll to see ifthe problem persists?
I look forward to hearing from you!
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and
confers no rights.--------------------Content-Class: urn:content-classes:message
From: "Damaji Jambhale" <da****@hotmail.com>
Sender: "Damaji Jambhale" <da****@hotmail.com>
Subject: COMException: Failure
Date: Fri, 29 Aug 2003 13:20:30 -0700
Lines: 10
Message-ID: <0a****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNuav5Gq63F4sU8QbuQYeScBCf0Kw==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.general:106663NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general
COMException: Catostrphic failure
When I added a "dll" reference in the web project.
I was able to instantiate the class OK. But when I tried
to set the properties, it failed with
"COMException: Catostrphic failure".
Any idea?
Thanks.
.