|
-
Dec 29th, 2003, 12:10 PM
#1
Thread Starter
Lively Member
FileStreams representing physical devices
In the Framework SDK it says that a FileStream object can represent physical devices as well as files, but conveniently doesn't say any more. If I wanted to represent an audio CD as a FileStream how would I do that?
-
Dec 29th, 2003, 06:03 PM
#2
yay gay
Actually you'd have to create a class that derives from Stream and implement everything by yourself
\m/  \m/
-
Dec 29th, 2003, 06:14 PM
#3
Thread Starter
Lively Member
Nice of them to not do it for us...
-
Dec 29th, 2003, 06:34 PM
#4
yay gay
You can use the FileStream and do whatever you want.
The Stream object is just an 'interface' to which you can derive other objects. It's the same with the 'object' type. You can do almost nothing with it, but you need it in EVERY class..
Search over CodeProject.com as I saw sometime ago some project which implemented a AudioStream, maybe that's what you're looking for.
\m/  \m/
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
|