RTFM, man...
WFM, man? (What *** Manual?). (hehe) VS doesn't come with any manuals, and
MSDN2 is a very poor manual due to the way it organizes the info.
The actual VS.NET product is pretty cool, but trying to use it is severely
hampered by MSDN2 documentation that is organized so that you almost have to
already know the answer to look it up!
For example. I've been trying to figure out how to use a .cur file as a
cursor, and how to use a bitmap constructed at runtime as a cursor. These
sound like easy tasks, right? Especially since .cur files are made
specifically to be used as cursors. But I've been looking ALL MORNING for
how to make use of .cur file, and the info on MSDN2 shows an example which
compiles, but doesn't execute. And it gives instructions on how to embed a
..cur file into one's project that refer to elements of the IDE that don't
exist. Here is a link and a quote from that page:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.cursor.aspx
// In Visual Studio:
// 1. Select the cursor file in the Solution Explorer
// 2. Choose View->Properties.
// 3. In the properties window switch "Build Action" to "Embedded"
There is no "Properties" under the View menu (but there is "Property Page").
There is no "Build Action" in the Properties Page window. And the code line
they provide:
this->Cursor = gcnew System::Windows::Forms::Cursor( GetType(),
"cursor.cur" ) ;
compiles, but when run generates a null pointer exception (another
annoyance, why doesn't this report WHAT was null? Or in the case of
re-definitions, how about telling us in the error message WHAT was
multiply-defined? These ommisions cost us programmers HOURS when the system
should be able to give us this info immediately. But I digress...).
So the only example given doesn't work. So how am I suppose to figure out
how to do this? Of course the programmers at MS can just ask the team that
created the language. We consumers are stuck with zero documentation and a
reference where the info is outdated, sometimes occuring with multiple
entries some of which no longer apply and act as decoy traps, and that can't
be counted on to have sample code (especially in C++), and often lists code
samples that don't work.
This is why I ask so many (stupid) questions in this newsgroup to figure out
how to do the most basic things... : )
Whenever I ask 'why is there no C++ sample code?' the typical response is it
would be too much trouble for MS to make sample code for everything. So I
guess they never tested this software in C++, or else such sample code MUST
exist. And, come on! MS spends all this work to make a feature and its too
much trouble to show us how to use it? Then why isn't it too much trouble to
make the feature in the first place? What I'd really like to know is this:
WHAT IS MS's MINDSET ON HOW WE ARE SUPPOSE TO LEARN THEIR PRODUCTS WITHOUT
REASONABLE DOCUMENTATION?
I'm hoping this isn't true, but it sometime seems this info is made
intentionally difficult to access so that MS will have an advantage with
their own software over those who purchase it from them. This is VERY
frustrating from a consumer pov...
[==P==]