iActiveScript & C# issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a Vb Scripting problem with .NET C# application and also

in Asp.NET.


I have written COM component in VC 6.0 , which execute a VBScript

and return a Recordset.

This componet is perfetly working with VC 6 ,VB 6 applications

but it does not work with .Net

the component is which exposes an interface method
GetCustAdoRecordset

{
========= do the script code here
}


CMyScriptSite::public IActiveScriptSite
{
}


...........
........

this class is my event handling class
CMyScriptExecuter::public CCmdTarget
{

....
....

// here gobal variables are set and passed to the script engine

BEGIN_DISPATCH_MAP(CMyScriptExecuter, CCmdTarget)
//{{AFX_DISPATCH_MAP(CMyScriptExecuter)
DISP_PROPERTY(CMyScriptExecuter, "MycustTime", m_custTime, VT_DATE)
DISP_PROPERTY_EX(CMyScriptExecuter, "TestCount", GetTestCount,

SetNotSupported, VT_I4)
DISP_FUNCTION(CMyScriptExecuter, "mymethod", mymethod, VT_EMPTY,

VTS_BSTR)
....

//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()

}

The above message map code is not executing while running from .net.

Can u kindly give a solution for this, is it a .net problem or any

thing else


===============================
 
Hi,

Can you please elaborate on how do you host the component in a C#
application? Have you generated the interop assembly manually or you merely
added a COM reference? Are any exceptions thrown?

"iActiveScript & C# issue" <iActiveScript & C#
(e-mail address removed)> wrote in message
news:[email protected]...
 
Back
Top