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!

MTS/Client events for VB6

Status
Not open for further replies.

Thrakazog

Programmer
Dec 10, 2001
48
US
I have an MTS object with and event that needs to be raised to the client. My client app is bombing when i try to instantiate the class object.

I have this code on the client.

dim withevents SaveCheck as clsSave'-clsSave is in my MTS package on the server

set SaveCheck = new clsSave '-This line of code fails

Any ideas on how I can get around this?
 
dear TharakZ
use CreatObject instead of New command
Here is the COde
Dim WithEvents SaveCheck as object
Set SaveCheck=CreateObject("ClsoBoObj.clsSave") 'ClsBoObj is the name of ur BO Project MTS Compoents .dll


also check that u have properly configured that project with Binary Compatibility and Proper MTS option set for ur clsSave
I hope it will work for you
Regards
Nouman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top