[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-java-com
Subject:    Re: More [out] param fun...
From:       "Marsh, Drew" <dmarsh () PROXICOM ! COM>
Date:       1999-01-30 2:38:31
[Download RAW message or body]


Russ,

I'm putting the @com information in for interfaces that are already defined
(i.e. I'm not creating IActiveScript). The only thing that makes info show
up in VB is a proper TLB.

Later,
    Drew

> -----Original Message-----
> From: Russ M'Lelland [mailto:russ.mcclelland@USA.NET]
> Sent: Friday, January 29, 1999 9:31 PM
> To: Java-COM@DISCUSS.MICROSOFT.COM
> Subject: Re: More [out] param fun...
>
>
> Hey Drew,
>
> When you put the @com.method items in, does it actually show
> up in your VB
> Object Browser?  Mine doesn't, so it seems to be a waste to
> me.  Please let
> me know...
>
> > -----Original Message-----
> > From: Java and COM
> [mailto:Java-COM@DISCUSS.MICROSOFT.COM]On Behalf Of
> > Marsh, Drew
> > Sent: Friday, January 29, 1999 8:09 PM
> > To: Java-COM@DISCUSS.MICROSOFT.COM
> > Subject: More [out] param fun...
> >
> >
> >         /**
> >          * @com.method(vtoffset=1, type=METHOD, name="AddScriptlet",
> > addFlagsVtable=4)
> >          * @com.parameters([in, type=STRING] defaultName,
> > [in, type=STRING]
> > code, [in, type=STRING] itemName, [in, type=STRING]
> subItemName, [in,
> > type=STRING] eventName, [in, type=STRING] delimeter, [in, type=I4]
> > sourceContextCookie, [in, type=I4] startingLineNumber, [in,
> > type=I4] flags,
> > [out, type=PTR, elementType=STRING] name, [out, type=PTR]
> > exceptionInfo)
> >          */
> >         public void AddScriptlet(String defaultName, String
> > code, String
> > itemName, String subItemName, String eventName, String
> delimeter, int
> > sourceContextCookie, int startingLineNumber, int flags, String name,
> > ExcepInfo exceptionInfo);
> >
> > Whenever I:
> >
> > ExcepInfo test = new ExcepInfo();
> > String test2 = new String();
> >
> >
> ((IActiveScriptParse)m_objJScriptEngine).AddScriptlet("foo", "function
> > test(num1, num2) { return num1 + num2; }", null, null, null,
> > null, 123, 0,
> > ScriptTextEnum.IsPersistent|ScriptTextEnum.IsVisible, test2, test);
> >
> > It barfs with an invalid pointer. Is [out, type=PTR,
> > elementType=STRING] the
> > right way to map this out? I don't see why it wouldn't be. It
> > worked for the
> > Variant "result" parameter of ParseScriptText.
> >
> > Thanx a bunch,
> >                    Drew
> >
> > ----------------------------------------------------------------
> > Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
> > contains important info including how to unsubscribe.  Save
> > time, search
> > the archives at http://discuss.microsoft.com/archives/index.html
> >
>
> ----------------------------------------------------------------
> Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
> contains important info including how to unsubscribe.  Save
> time, search
> the archives at http://discuss.microsoft.com/archives/index.html
>

----------------------------------------------------------------
Users Guide http://www.microsoft.com/workshop/essentials/mail.asp
contains important info including how to unsubscribe.  Save time, search
the archives at http://discuss.microsoft.com/archives/index.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic