ADODB.Stream.Open now with VS2005 gives wrong type error message
- From: "Sarah M. Weinberger" <mweinberger@xxxxxxxxxxx>
- Date: Fri, 5 Oct 2007 12:26:37 -0700
Hi,
Sorry about the fragmented previous post. I tried to get rid of the extra
spacing but pressing Ctrl+Enter wound up sending my post. Ooops.
I have some code that with the previous vesion of Microsoft Visual Studio
2002 worked fine, but now I receive an error message.
public void MyFunction()
{
ADODB.Stream oStream;
oStream = null;
try
{
// Create a stream to save the XML structure.
oStream = new ADODB.Stream();
oStream.Open((object)System.Reflection.Missing.Value,
ConnectModeEnum.adModeWrite, StreamOpenOptionsEnum.adOpenStreamUnspecified,
"", "");
}
}
When I try to execute the oSTream.Open() line, I get the error message:
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another, -2146825257
Since all the arguments are option, were optional, I am clueless to why
VS2005 complains.
Thoughts?
Thanks in advance,
Sarah
.
- Follow-Ups:
- RE: ADODB.Stream.Open now with VS2005 gives wrong type error message
- From: Chris Alton [MSFT]
- RE: ADODB.Stream.Open now with VS2005 gives wrong type error message
- Prev by Date: Re: Error while opening SQL Server CE database
- Next by Date: Re: vb6 call recordset from sql server 2000 - working until using parameters - then empty recordset
- Previous by thread: Re: Error while opening SQL Server CE database
- Next by thread: RE: ADODB.Stream.Open now with VS2005 gives wrong type error message
- Index(es):