Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old September 20th, 2003, 12:02 PM
Authorized User
 
Join Date: Sep 2003
Location: Aurangabad, Maharashtra, India.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to vb_programmer Send a message via Yahoo to vb_programmer
Default Help with using DLLs in VB

Hello to All Forum Members ;

I need to know one thing ...

Is it possible to use a DLL which can't be registered with RegSvr ?? If yes can you please tell me How can I use it with VB ?

I have one DLL downloaded from Net which is used for PNG and MNG image creation. When I tried to register it with RegSvr , it said "Failed to fine DLLRegisterServer functon in <DLL file Path>"

What does it mean ?? Can't I use such DLLs with VB ?? I have three such DLLs downloaded from Internet Websites , before this , I've never used such DLLs in VB. I know only one way of using DLL ... setting Reference from VB IDE.

Please help me to learn how to use such DLLs with VB ??

Waiting for your valuable response ...

Ruturaj.
  #2 (permalink)  
Old September 22nd, 2003, 02:42 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Ruturaj,

You need a Declare statement for each exported function in the dll. That statement tells VB where to find the DLL, and what are the data types of the parameters and return value.

If you can give an example of one of the functions you wish to call, I can show you what the Declare should look like.

rgds
Phil
  #3 (permalink)  
Old September 23rd, 2003, 05:39 PM
Friend of Wrox
 
Join Date: Aug 2003
Location: , , .
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

VB can only use COM Dlls. The other dlls cannot be used by referencing them. However, you can declare functions from these Dlls (such as is done for windows APIs). Talk to the manufacturer of the dll. What Dll is it?

Yehuda


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use two dlls with same name but prakashrams ASP.NET 1.0 and 1.1 Basics 1 November 29th, 2006 11:26 AM
Using DLLs in VB 6 gjc VB How-To 2 September 7th, 2005 03:47 AM
Making DLLs in VB.NET loganscott2000 VB.NET 2002/2003 Basics 2 April 10th, 2005 04:40 PM
Strong name to msinet wrapper dlls vb.net rameshu007 Classic ASP XML 0 July 13th, 2004 06:07 AM
Using VB 6.0 DLLs in .Net ECrawford ASP.NET 1.0 and 1.1 Basics 4 June 29th, 2004 07:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.