FYI: Mistake in MFC documentation...
Prakash N -- pran@wings.xko.dec.com
Friday, July 26, 1996
Environment: MSVC 4.0, Win 95
Hello!
This is for your information. There is a bug in MFC documentation both =
in online and in the book. It goes like this:
The class CPropertSheet has a member function called SetTitle() which is =
used to set the title of the tab dialog's title text. It takes two =
parameters; first is a style parameter and the second is the actual text =
of the new title of the tab dialog. That is the problem. Actually, those =
two parameters are in the order that the style first and the text next. =
Try it and get annoyed. It is the reverse. The text first and the style =
next.
CPropertySheet::SetTitle(UINT nStyle, LPCTSTR lpszText);
------------> as given in the documentation which is wrong.
CPropertySheet::SetTitle(LPCTSTR lpszText, UINT nStyle);
--------------> which is how it has to be exactly.
Hats off to Microsoft documentation!!!!!!!!
Cheers,
Prakash.
DEC, India.
pran@wings.xko.dec.com
Greg D. Tighe -- gdt@eng.aisinc.com
Monday, July 29, 1996
[Mini-digest: 3 responses]
This has been fixed in the MSVC++ 4.2 online help.
> Environment: MSVC 4.0, Win 95
> Hello!
>
> This is for your information. There is a bug in MFC documentation both in online and in the book. It goes like this:
>
> The class CPropertSheet has a member function called SetTitle() which is used to set the title of the tab dialog's title text. It takes two parameters; first is a style parameter and the second is t
> e actual text of the new title of the tab dialog. That is the problem. Actually, those two parameters are in the order that the style first and the text next. Try it and get annoyed. It is the rever
> e. The text first and the style next.
>
> CPropertySheet::SetTitle(UINT nStyle, LPCTSTR lpszText);
> ------------> as given in the documentation which is wrong.
> CPropertySheet::SetTitle(LPCTSTR lpszText, UINT nStyle);
> --------------> which is how it has to be exactly.
>
> Hats off to Microsoft documentation!!!!!!!!
>
> Cheers,
> Prakash.
> DEC, India.
> pran@wings.xko.dec.com
>
>
-Greg Tighe
Applied Intelligent Systems, Inc.
Ann Arbor, MI
gdt@aisinc.com
-----From: "Mike Blaszczak"
Thanks for the report. I'll pass it on to the documentation folks. You should
know, though, that you can always contact the documentation team directly by
writing to vcdocs@microsoft.com. Since you sound sort of bitter about the
documentation, maybe you should write, constructively, about what you'd like
to see changed.
> Hats off to Microsoft documentation!!!!!!!!
Three cheers for DEC Service Agreements!!!!!!!!
.B ekiM
http://www.nwlink.com/~mikeblas
-----From: Herb Warren
Environment: MSVC 4.2, NT 4 Beta 2
This seems to have been fixed in this version of the MFC online
documentation. As annoying as documentation errors are, there are amazingly
few, especially considering the amount of documentation that has to be
written and maintained. However, problems like these are why there are
include files and source to look at....
________________________________________________________________________
Herb Warren - Junior G-Man, Rocket Scientist. AM/FM/GIS Services
James W Sewall Company Voice: 207-827-4456
147 Center Street Fax: 207-827-3641
Old Town, Maine 04468 Email: warren@jws.com
________________________________________________________________________
Always...always remember: less is less. More is more. More is better,
and twice as much is good too... not enough is bad, and too much is never
enough except when it's just about right. -- The Tick.
| Вернуться в корень Архива
|