Platform SDK: Transaction Server

MTx.GetObjectContext Method, IObjectContext.CreateInstance Method Example

[This product will work only on Windows NT 4.0 versions and earlier. For Windows 2000 and later, see COM+ (Component Services).]

import com.ms.mtx.*;


IAccount account = null;

// Get the object's ObjectContext and
// use it to instantiate another object.
account = (IAccount) MTx.GetObjectContext().
    CreateInstance(CAccount.clsid, IAccount.iid);