Re: collections
Heiko Selber <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Please forgive my ignorance, but where can I find SafeArray?
It seems to be part of Microsoft's J++.
Does it mean I cannot use Sun's JDK with Jawin?
> try this:
>
> List drives = new ArrayList();
>
> DispatchPtr fso = new DispatchPtr("Scripting.FileSystemObject");
> SafeArray sa = fso.get("Drives").toSafeArray;
> for(int i = sa.getLBound(); i <= sa.getUBound(); i++)
> {
> Object drive = sa.getVariant(i).toDispatch();
> drives.add(drive);
> }
>
> return (Object[]) drives.toArray(new Object[0]);
>
>
> Heiko Selber wrote:
> > I am trying to access the items of a collection, or to create a
> > Enumeration for the collection, but don't seem to get anywhere.
> >
--
----
I condem'n the abuse of apostrophe's.
+++ NEU: GMX DSL_Flatrate! Schon ab 14,99 EUR/Monat! +++
GMX Garantie: Surfen ohne Tempo-Limit! http://www.gmx.net/de/go/dsl