[prev in list] [next in list] [prev in thread] [next in thread]
List: ms-java-com
Subject: Re: Consts in IDL
From: Brabban Andrew <Andrew.Brabban () ICL ! COM>
Date: 1999-02-26 13:56:56
[Download RAW message or body]
Thanks,
Using
[ ... ]
library MyLibrary
{
module MyConstants
{
const BSTR MY_CONSTANT = "Const Value";
}
// ...
}
I get an additional Java interface generated by JActiveX:
public interface MyConstants
{
public static final String MY_CONSTANT = "Const Value";
}
It would be preferable if these constants were in the interface to which
they applied but this is workable.
Andrew
> -----Original Message-----
> From: Girish Bharadwaj [mailto:girishb@MVPS.ORG]
> Sent: 26 February 1999 12:05
> To: Java-COM@DISCUSS.MICROSOFT.COM
> Subject: Re: Consts in IDL
>
>
> Try using [module] attribute. That is the one you need to use
> to declare
> consts..
> See if that helps.
> Girish Bharadwaj
>
> -----Original Message-----
> From: Brabban Andrew <Andrew.Brabban@ICL.COM>
> To: Java-COM@DISCUSS.MICROSOFT.COM <Java-COM@DISCUSS.MICROSOFT.COM>
> Date: Friday, February 26, 1999 6:56 AM
> Subject: Consts in IDL
>
>
> >Consts in IDL generate #defines in the C header file but
> produce nothing
> for
> >Java. Is there any way to get JActiveX to put 'public static
> final' into
> the
> >java wrapper interfaces when the const is inside an interface ?
> >
> >E.g.
> >
> >[
> > object,
> > uuid(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxx),
> > dual,
> > helpstring("My Interface"),
> > pointer_default(unique)
> >]
> >interface IMyInterface : IDispatch
> >{
> > const BSTR MY_CONSTANT = "Const Value";
> >
> > // ...
> >}
> >
> >to generate:
> >
> >public interface IMyInterface extends IUnknown
> >{
> > public static final String MY_CONSTANT = "Const Value";
> >
> > // ....
> >
> >}
> >
> >Thanks,
> >
> >Andrew Brabban
> >ICL Financial Services
> >Tel: +44 1625 545 057
> >Fax: +44 1625 545 001
> >E-mail: andrew.brabban@icl.com
> >
----------------------------------------------------------------
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