By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,054 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,054 IT Pros & Developers. It's quick & easy.

Stream.open

P: n/a
Hi

I am working on a proted project from VB to C#

in VB stream.open without any parameters works
but in C# i need to pass certain arguments

like
Stream.Open(null, (ADODB.ConnectModeEnum)(0),
(ADODB.StreamOpenOptionsEnum)(-1), "", "");

here i pass object source as null which is not acceptable later i
modified to the following

Stream.Open(System.Reflection.Missing.Value ,
(ADODB.ConnectModeEnum)(0), (ADODB.StreamOpenOptionsEnum)(-1), "", "");
Later i say
rs.open(stream );

but i encounter an error
Wrong arguments or out of acceptable range

Can i have a Generic stream.open and also i should be able to pass the
stream to rs.open(stream)

regards
Madhavi

Sep 29 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.