Create a ActiveX DLL
Name the Project "TestProject"
Name the Class "TestClass"
Set the Instancing Property of "TestClass" to 5-MultiUse
put this code in the "TestClass"
Code:
Public Function Hi() as string
Hi = "Hello there"
End Function
Compile this DLL
Install this DLL into Component Services or MTS
Export the package you put the DLL into to creat the Proxy Stub (read up dependant on if you use MTS or Component services this is done slightly different)
Install the Proxy Stub on your machine
Create a Standard EXE application in VB
Set a reference to the TestProject library (if you don't see it you didn't do the above steps right)
Put a Text box and command button on the form
On the button's Click event put this code
Code:
Dim cTmp AS TestProject.TestClass
Set cTmp = New TestProject.TestClass
Text1.text = cTmp.HI()
compile your program and run
Maybe if you told us a bit more we could actually help you!