P
Peter Oliphant
I have been using VC++ 2005 Express for a while now. I'm very impressed with
the language and GUI environment. But, more to the point, I pretty much
adore MANAGED programming, since trying to figure out when it is appropriate
to delete something has always been the main problem in C++ programming (in
fact, if one analyzes this, garbage collection (i.e., memory freeing) HAS to
be done at a level ABOVE the application for many situations).
But the 'hate' aspect to it comes in the difficulty I often have trying to
figure out how to do something. It is often more frustrating becuase I know
it CAN be done, and that there is likely even some aspect of the language/OS
that makes it trivially easy to do. But trying to FIND it, that's another
thing.
Recently I posted (and got a quick excellent response, thanx!) trying to
create a new Bitmap and a subsection of an existing Bitmap. I looked for
something like:
Bitmap^ sub_bm = gcnew Bitmap (source_bm( x,y,w,h ) ) ;
which seems like a good construct for this, but it doesn't work. It turns
out the answer didn't lie in the Bitmap class at all, but in the Graphics
class, using the 'FromImage' method. One uses this method to create a
Graphics object that is associated with the newly created sub_bitmap of the
approriate size, and then draw a portion of the source bitmap to the
sub-bitmap with the Graphics object.
How in hell was I suppose to figure that out using MSDN? MSDN is organized
like a dictionary : you have to know the NAME of what you are looking up to
find it! Thus, it is an EXCELLENT REFERENCE, and a terrible place to LEARN
about the possibilities. Problem is, this is all we get as external
developers to MS! As I like to describe by analogy: a book which details
every component of a car including what each part does, does not give enough
information on how to BUILD a car with said components! How components are
used and interact is not a part of the description of its parts. The whole
is MUCH greater than the sum of its parts!
I wish things were like they were back in the old days when Borland
dominated. They gave TONS of documentation, including books on language
refernece and tutorials, with EVERY language they sold! Visual Studio comes
with no documentation, just a link inside the GUI to MSDN. Instead, MS
writes excellent descriptions on how to use their language, but SELL these
via their MS Press for $100's more. And they aren't compelled to write such
books about everything, leaving some features 'invisible' to developers, and
might as well not exist (e.g., try to find a book on how to use SAPI).
My wish is that if MS sticks with this method (no doco except MSDN), that
they take the time to go over MSDN over-and-over and keep adding TUTORIALS
ans PLEASE, PLEASE, PLEASE more CODE examples (there are tons of pages with
no descriptions or code exmples) in ALL of the languages (yes, MS wants to
push C# since they own it, but C++ examples are necessary if they keep
SELLING C++. makes sense, doesn't it?).
I often write telling MS about pages missing details and any code exmples
(some pages even say 'code example follows' followed by nothing), but I get
no response and the pages never change. So I'm at a loss of what I'm
'suppose' to do...
But, like I said, MS VC++ 2005 Express is my favorite language right now,
just wish I didn't have to research each new aspect I want to use, sometimes
for weeks at a time, before getting the info I need to use it (I'm trying to
get some clear SAPI information, which seems quite scarce)...
[==Peter==]
the language and GUI environment. But, more to the point, I pretty much
adore MANAGED programming, since trying to figure out when it is appropriate
to delete something has always been the main problem in C++ programming (in
fact, if one analyzes this, garbage collection (i.e., memory freeing) HAS to
be done at a level ABOVE the application for many situations).
But the 'hate' aspect to it comes in the difficulty I often have trying to
figure out how to do something. It is often more frustrating becuase I know
it CAN be done, and that there is likely even some aspect of the language/OS
that makes it trivially easy to do. But trying to FIND it, that's another
thing.
Recently I posted (and got a quick excellent response, thanx!) trying to
create a new Bitmap and a subsection of an existing Bitmap. I looked for
something like:
Bitmap^ sub_bm = gcnew Bitmap (source_bm( x,y,w,h ) ) ;
which seems like a good construct for this, but it doesn't work. It turns
out the answer didn't lie in the Bitmap class at all, but in the Graphics
class, using the 'FromImage' method. One uses this method to create a
Graphics object that is associated with the newly created sub_bitmap of the
approriate size, and then draw a portion of the source bitmap to the
sub-bitmap with the Graphics object.
How in hell was I suppose to figure that out using MSDN? MSDN is organized
like a dictionary : you have to know the NAME of what you are looking up to
find it! Thus, it is an EXCELLENT REFERENCE, and a terrible place to LEARN
about the possibilities. Problem is, this is all we get as external
developers to MS! As I like to describe by analogy: a book which details
every component of a car including what each part does, does not give enough
information on how to BUILD a car with said components! How components are
used and interact is not a part of the description of its parts. The whole
is MUCH greater than the sum of its parts!
I wish things were like they were back in the old days when Borland
dominated. They gave TONS of documentation, including books on language
refernece and tutorials, with EVERY language they sold! Visual Studio comes
with no documentation, just a link inside the GUI to MSDN. Instead, MS
writes excellent descriptions on how to use their language, but SELL these
via their MS Press for $100's more. And they aren't compelled to write such
books about everything, leaving some features 'invisible' to developers, and
might as well not exist (e.g., try to find a book on how to use SAPI).
My wish is that if MS sticks with this method (no doco except MSDN), that
they take the time to go over MSDN over-and-over and keep adding TUTORIALS
ans PLEASE, PLEASE, PLEASE more CODE examples (there are tons of pages with
no descriptions or code exmples) in ALL of the languages (yes, MS wants to
push C# since they own it, but C++ examples are necessary if they keep
SELLING C++. makes sense, doesn't it?).
I often write telling MS about pages missing details and any code exmples
(some pages even say 'code example follows' followed by nothing), but I get
no response and the pages never change. So I'm at a loss of what I'm
'suppose' to do...
But, like I said, MS VC++ 2005 Express is my favorite language right now,
just wish I didn't have to research each new aspect I want to use, sometimes
for weeks at a time, before getting the info I need to use it (I'm trying to
get some clear SAPI information, which seems quite scarce)...
[==Peter==]