PC Review


Reply
Thread Tools Rate Thread

ADODB.Stream.Open now with VS2005 gives wrong type error message

 
 
Sarah M. Weinberger
Guest
Posts: n/a
 
      4th Oct 2007
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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
crystal report issue in VS2005 - Not implemented Details: Error Code:0x Sorce: ADODB.CONNECTION msnews.microsoft.com Microsoft ASP .NET 2 9th Oct 2007 09:18 PM
ADODB.Stream.Open now with VS2005 gives wrong type error message Sarah M. Weinberger Microsoft ADO .NET 0 4th Oct 2007 09:29 PM
Enable ADODB.stream =?Utf-8?B?T1RNU05X?= Windows XP Internet Explorer 0 12th Jul 2005 04:27 PM
adodb.stream (KB870669) sasky1 Windows XP Security 1 9th Jul 2004 08:50 AM
ADODB.stream Brian Burgess Microsoft Windows 2000 Windows Updates 2 5th Jul 2004 09:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:06 AM.