Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

iActiveScript & C# issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iActiveScript & C# issue - 30 Jan 2006 04:27 GMT
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

===============================
Dmytro Lapshyn [MVP] - 31 Jan 2006 08:36 GMT
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?

> I have a Vb Scripting problem with .NET C#   application  and  also
>
[quoted text clipped - 54 lines]
>
> ===============================

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.