Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple MTS program pls

Status
Not open for further replies.

dekcool

Programmer
Oct 2, 2002
231
PH
hi!
this is DEK can you give a sample program using:

MTS
COM+
WIN2000

if is ok to show me it step by step how to use
i need it badly
Thanks in advance
DEK
 
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!
 
thank u very much

this will help me thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top