RE: ADODB.Stream.Open now with VS2005 gives wrong type error message
- From: calton@xxxxxxxxxxxxxxxxxxxx (Chris Alton [MSFT])
- Date: Mon, 08 Oct 2007 17:27:23 GMT
We do not recommend using ADODB interop to do data access in Visual Studio
2005. There are a lot of issues with that and the new ADO .NET classes
provide a much more stable and feature rich implementation to data.
Here is a KB Article that speaks of this:
http://support.microsoft.com/kb/910696
-------------------------------------
Chris Alton, Microsoft Corp.
SQL Server Developer Support Engineer
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "Sarah M. Weinberger" <mweinberger@xxxxxxxxxxx>StreamOpenOptionsEnum.adOpenStreamUnspecified,
Subject: ADODB.Stream.Open now with VS2005 gives wrong type error message
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,
"", "");
}
}
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: Sarah M. Weinberger
- Re: ADODB.Stream.Open now with VS2005 gives wrong type error message
- References:
- ADODB.Stream.Open now with VS2005 gives wrong type error message
- From: Sarah M. Weinberger
- ADODB.Stream.Open now with VS2005 gives wrong type error message
- Prev by Date: Re: Timeout Error: Data Adaptor
- Next by Date: Re: vb6 call recordset from sql server 2000 - working until using parameters - then empty recordset
- Previous by thread: ADODB.Stream.Open now with VS2005 gives wrong type error message
- Next by thread: Re: ADODB.Stream.Open now with VS2005 gives wrong type error message
- Index(es):
Relevant Pages
|
|