Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB DLLs and VB programs

Posted on 1999-08-10
2
Medium Priority
?
197 Views
Last Modified: 2010-04-30
How i can call (access to) any dll made with VB 6.0 from my program also made with VB 6.0? For example, i write any dll for geting mp3 information from specify file. Now, how i can call that dll - input is specify file - from my program and then back me any information (mp3 tags and etc.).
0
Comment
Question by:bokikg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
ScottyMac earned 200 total points
ID: 1530825
To access a dll (ActiveX Component) created in VB6, you must, in your VB6 frontend code, create an instance of the class that you want to use.  Then you can use the class's properties and methods to achive what you want.

Private mcCustomer as CCustomer
Set mcCustomer = New CCustomer

Now you can use the methods held in the CCustomer class.
0
 
LVL 3

Expert Comment

by:TheAnswerMan
ID: 1530826
Create your DLL with appropriate
public variables, or methods.

Go to Menu Project REferences and select your DLL.

Then in your Code.
Dim Poo as New MyClass
Poo.FileName = App.path & "\myMpeg.mpg"
poo.Calculate
msgbox poo.LengthInSecs


0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

671 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question