Re: Quick question about streams...?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thankyou Carl....!

Okay, I don't mind learning all there is to learn, but wait a minute...
All the commands that I am doing in Charles Petzold's book (for loops,
structures, malloc, and Create file.... isn't that all "C" language)

And isn't the API a bunch of C functions?

I was always confused on this.... For once and for all...............Can I
confirm something.

Our processor right runs binary code... right....

which in turn they developped assembler on top of binary code right.....

In which then they invented C which runs on assembler right.....

Then they developped DOS on C right...... or wrong?

Whereby they made Windows out of C language right..... coupled with C
functions as the API right or wrong... or am I way off?????

And then how does C++ and VC++ tie into all of this????
And I guess mfc is built to run on the API right....
And what about atl... what is that? and .net runs on the API also or on C++?
And what's a Frameworks?

Anyways.... I always wanted to know concretely where all this stuff really
comes from???? I hope some can clear this for me...

All educational comments are *very* *very* appreciated!

Thanks!

--
Best regards
Robert


"Carl Daniel [VC++ MVP]" wrote:

Robby wrote:
Hello,

I am reviewing C++ and if I may say so I prefer C++ instead of C. So
I am gearing myself towards programming my future programs using
classes, objects, inheritance and so forth.

However, I see the need to do some saving of information on my hard
drive and the way to do this is (I believe) is using I/O streams.

I have a very interesting chapter in one of my C books thats shows
all of this! However, can I then apply what I would learn in C (IO
streams) to C++ or is C++ I/O streams far more different?

Quite different, although C++ IOStreams is typically implemented as a layer
atop the C stream functions, that's not a requirement and the programming
interfaces for the two are quite different.


My C++ book does not talk about streams. Also Petzold's book talks
about "Create file" in head.c program on p.411, I don't know if this
is the same as what my C book explains! (It doesn't seem like it!)

No, that's Win32 file I/O - the actual OS-level functions that C stream I/O
is built on (when running on Windows, that is).


I am a little confused about what to learn in order to do some file
saving operations!

Can someone guide me to what I should be learning.... C-I/O streams
or C++ I/O streams?

Ideally, all of the above.

I hope my question makes sence!

Yep, perfect sense.

All suggestions appreciated.

If you're serious about C++ <iostream> streams, the de-facto standard
reference is "C++ IOStreams and Locales" by Angelika Langer and Klaus Kreft.
"The C++ Standard Library" by Nicolai Josuttis has a lot of coverage of I/O
streams as well.

-cd



.



Relevant Pages

  • Re: COM Exception during SelectTerminalOnCall from C#
    ... Programming Interface functionality is not supported from managed ... Enumerate all streams of a call (to see if there are any streams ... ITTerminal localTerm = ... ITMediaPlayback mediaPlayback = localTerm as ITMediaPlayback; ...
    (microsoft.public.win32.programmer.tapi)
  • Re: String filtering
    ... The socket library I'm using right now doesn't do streams. ... > You should use the programming styles supported by Ada, ... > programming in Ada. ... David Trudgett ...
    (comp.lang.ada)
  • Re: Quick question about streams...?
    ... I am gearing myself towards programming my future programs using ... I see the need to do some saving of information on my hard ... drive and the way to do this is is using I/O streams. ... My C++ book does not talk about streams. ...
    (microsoft.public.vc.language)
  • Re: Learning Experience
    ... I will provide a link to those streams on Webster. ... stand the fact that his product has been a complete failure and his ... by the assembly programming community. ...
    (alt.lang.asm)
  • Re: CreatePatternBrush(), brush in multiline editbox + scroll?
    ... MORE important in raw Win32 API programming than it is in MFC. ... Note that raw API programming is a really difficult way to write code. ...
    (microsoft.public.win32.programmer.gdi)