Connecting Tech Pros Worldwide Help | Site Map

how to use a library with VB6 application

Member
 
Join Date: Jun 2007
Posts: 88
#1: Aug 25 '08
hello all...I have a VB6 application...for this I want to use iText library......can anyone plz tell me where to get it from and how to use that library...plz reply soon....I will be thankful for any reply...
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,500
#2: Aug 26 '08

re: how to use a library with VB6 application


do u have the library ,you want to use ?

if you have it ,copy it to SYSTEM32 folder.

register the component with windows using REGSER32 key.

access to that from project---reference menu

create an object of the library and use its other properties and methods.
Member
 
Join Date: Jun 2007
Posts: 88
#3: Aug 26 '08

re: how to use a library with VB6 application


I have a Library called "iText" which is a Java Library.....can we use tht Library in VB application to manipulate PDF files...?????..Please confirm the same....I will be thankful to u....reply sooner than later...

Quote:

Originally Posted by debasisdas

do u have the library ,you want to use ?

if you have it ,copy it to SYSTEM32 folder.

register the component with windows using REGSER32 key.

access to that from project---reference menu

create an object of the library and use its other properties and methods.

Member
 
Join Date: Jun 2007
Posts: 88
#4: Aug 26 '08

re: how to use a library with VB6 application


I have downloaded iText.dll (Java Library) and copied it to the System32 folder in C drive.....and the in command prompt I tried to register the dll...the command I used is...
<Code>
C:\>regsvr32 "C:\WINDOWS\system32\iText.dll"
</Code>

but its hitting out an error saying...

LoadLibrary(C:\WINDOWS\system32\iText.dll) failed- The specified module could not be found.

Please let me know where am I going wrong....will appreciate ur reply...
Member
 
Join Date: Aug 2009
Posts: 33
#5: Sep 10 '09

re: how to use a library with VB6 application


This error is usually a machine-specific issue and can be related to a corrupted registry key or a DCOM error.

There is also a .net iText library.
you can create interop and use the functionality..
Reply