Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

VB6 ActiveX DLL

$
0
0
In VB6 the following syntax are as follows...

List1.Font.Italic

List1 = Method
Font = Property
Italic = What?? Is this a collection?

And how would I replicate this "Italic" using ActiveX DLL.


Example Categories:
- File IO Routines (CFileIO.cls)
- Conversion Routines (CConversion.cls)
- String Routines (CStrings.cls)

I 'm trying to create a DLL which consist of several categories (classes) and would like to combine these
three classes into one ActiveX DLL like the example below.


Dim MyDLL As New CCustomDLL

Debug.Print MyDLL.FileIO.FileInfo("c:\test.txt")
Debug.Print MyDLL.Conversion.Meter2Feet(100)


I 'm trying to avoid declaring these classes individually like...

Dim MyFileIO As New CFileIO
Dim MyStr As New CStrings
Dim MyConversion As New CConversion


Is this possible with VB6?

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>