Solved

How to Define VB6 interfaces?

Posted on 2010-09-06
3
600 Views
Last Modified: 2013-11-26
hi,
I got the below example for defining an interface in vb6. In the derived class the method name starts with the name of the base class "BaseClass_BaseMethod()". Is this the way interfaces work or is it just a naming convention? Thanks.

' Contents of class BaseClass
Public Sub BaseMethod()
End Sub

' Contents of class DerivedClass
Implements BaseClass
Private Sub BaseClass_BaseMethod()
End Sub
0
Comment
Question by:ipjyo
3 Comments
 
LVL 14

Accepted Solution

by:
VBClassicGuy earned 250 total points
ID: 33614620
Just the way someone named it. You can name your classes anything you want (within reason, no reserved words, etc).
0
 
LVL 3

Assisted Solution

by:deepusreedhar
deepusreedhar earned 250 total points
ID: 33616581
That is just a naming convention someone used. The derivation is implemented by using
"Implements BaseClass"
0
 

Author Comment

by:ipjyo
ID: 33619666
Thanks.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

776 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