Re: ADO Stream and Java

paul.urban_at_nospam.com
Date: 03/21/05


Date: 21 Mar 2005 05:16:00 -0800

The problem is the first parameter (the Variant). This code will work:

Variant empty_variant = new Variant();
empty_variant.noParam();
strmIn.Open(empty_variant, ConnectModeEnum.adModeUnknown,
StreamOpenOptionsEnum.adOpenStreamUnspecified, null, null);

Paul

Mikael Karon wrote:
> Fixed the problem, sortof...
>
> Instead of using the msado15 (not 25) stuff, i used
> com.ms.com.wfc.io.MemoryStream, and it worked for my app...
>
> regards / Mike
>
> >-----Original Message-----
> >I'm trying to use the ado stream object from java, and
> >keep getting:
> >
> >{com.ms.com.ComFailException detailMessage="Arguments are
> >of the wrong type, are out of acceptable range, or are in
> >conflict with one another."} java.lang.Exception
> >
> >all I'm trying to do is :
> >
> >import msado25.Stream;
> >Stream stream = new Stream();
> >stream.Open(new Variant(null),
> >msado25.ConnectModeEnum.adModeUnknown,
> >msado25.StreamOpenOptionsEnum.adOpenStreamUnspecified, "",
>
> >"");
> >
> >any ideas ?
> >.
> >



Relevant Pages

  • Re: Difference Between Null, Empty and ""
    ... Paul has given you a good answer. ... > value)...and can only be assigned to a Variant data type. ... Empty indicates ... > 'Checks whether argument is Null, Empty, empty string, or Nothing ...
    (microsoft.public.access.modulesdaovba)
  • Re: C++ Conversion functions for pointers
    ... Paul wrote: ... > Variant class with the prerequesites that UDT's ... > integer pointer to a Variant pointer. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: String to Variant conversion
    ... Paul wrote: ... Dim temp as Variant ... Dave Peterson ...
    (microsoft.public.excel.programming)
  • Re: Freeview Playback doomed?
    ... Paul D.Smith wrote: ... Each variant should be a series of its own. ... But the Freeview Playback Spec would suggest that it *should* link all variants. ... That would seem to be rather odd, especially given the, type channels. ...
    (uk.tech.digital-tv)
  • Re: Freeview Playback doomed?
    ... Paul D.Smith wrote: ... Each variant should be a series of its own. ... Personal judgement as to whether that is better or worse than no SL at all;-). ... But the Freeview Playback Spec would suggest that it *should* link all variants. ...
    (uk.tech.digital-tv)