Hi,

I've built an ASP page which uses an activeX DLL to retrieve data from a database.

The function which retrieves the data (in side the DLL) loocs like :

Public function GetRS(ByVal ID as integer, Optional ByRef Hresult as Variant) as ADODB.Recordset

The function builds a recordset and uses the Hresult variant to return Error Codes.

I developed that DLL as a normal DLL, It worked grate the recordset was created and the Hresult returned Errors as planed, so I happily moved to the 2nd stage which was to place the DLL in a MTS.

When I placed the DLL in the MTS Hresult stopped working. My ASP received the recordset correctly but did not get the Hresult values (Hresult is always empty).

Way Is that ?

Thanks

Erez