Home > Tutorials > How to Access the ActiveX DLL in your Project
How to Access the ActiveX DLL in your Project
**************************************************************** * © 2007 CodeItBetter http://www.codeitbetter.com * * This notice MUST stay intact for legal use * ****************************************************************
Step by Step instructions to access ActiveX Dll:
1. Open a New Project in VB6 and click on the icon "Standard EXE".
2. Click on Project and select References.
3. Select your Dll, Click OK. If your Dll is not listed then you can register it or Click on Browse and navigate to your Dll location and select it.
4. You will now have access to all your Public Functions and Sub-routines.
For Example: If you had a Public Function as shown below in your Dll in Class Functions:
Public Function Hello()
MsgBox "Hello"
End Function
You could use this call from your standard exe below:
Private Sub Command1_Click()
Dim oFunctions as Functions
Set oFunctions = New Functions
oFunctions.Hello
Set oFunctions = Nothing
End Sub
If you would like to submit your code or tutorial here please us. Do not forget to mention your name. We are always thankful to each and everyone of you who submitted their code here.
| | | | $3.5 CPM No Minimum Payout