|
-
Jul 8th, 2004, 01:53 PM
#1
Thread Starter
Frenzied Member
Create a new stream
The following code:
VB Code:
Dim s As Stream
b.Serialize(s, ToSerialize)
Doesn't work... why?
When I try to do "Dim S As New Stream", it won't let me...
But when I try the above code, it tells me that S = Nothing and won't let it serialize...
Thanks for any help...
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jul 8th, 2004, 01:58 PM
#2
Frenzied Member
A stream is an abstract class. You need to use one of it's derived child classes.
Sean
Some days when I think about the next 30 years or so of my life I am going to spend writing code, I happily contemplate stepping off a curb in front of a fast moving bus.
-
Jul 8th, 2004, 02:40 PM
#3
Thread Starter
Frenzied Member
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jul 8th, 2004, 04:10 PM
#4
Thread Starter
Frenzied Member
So, is there any stream other than the FileStream that I can use to do this?
The stream that I am using is just going to be fed directly into a database OLE field... so I don't need to create a file or anything, just keep the stream in memory 
L8R,
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Jul 8th, 2004, 04:15 PM
#5
Amazingly enough, there is a class called MemeoryStream.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 8th, 2004, 05:40 PM
#6
Thread Starter
Frenzied Member
LOL... Isn't that odd...
Thanks guys...
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|