"Bill Cousert" <wr*******@yahoo.com> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl...
Hi Peter,
Would I do this by adding a reference? Assume my function is named test.
How would I call it from JScript?
Actually, I'm not sure how easy it will be to use the external object in C#
with WinForms. Looking at:
http://msdn.microsoft.com/workshop/b...w/overview.asp
it seems you have to do work in an DocUIHost interface which (presumably)
WinForms implements for you. Maybe you can figure out a way around that.
Anyway, the next best option is to call into IE to get a handle on the
script block, then use Reflection to invoke a member on the script that will
accept a callback object (your C# object) for later use. Kind of messy, but
it should work.
Peter
--
Please post questions to the newsgroup - everyone benefits.
This post is provided "AS IS" with no warranties, and confers no rights
Sample code subject to
http://www.microsoft.com/info/cpyright.htm