我在ms的group上问了个问题
http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.vc.mfc&tid=402a414c-a125-45bd-9cf4-c1819db7e3e4:
in http://msdn2.microsoft.com/en-us/library/480b7kf7.aspx, it says that
pGdiObject->DeleteTempMap(); // Causes compiler error
But I'm confused for a static member can be called by the object or a pointer.
Is there anything wrong of my understanding?
回答的人到蛮多,讨论的也很热烈,但都没有直接回答我的问题,我的问题是,对于静态函数,
pGdiObject->DeleteTempMap()
; // Causes compiler error,
到底对不对?如果不对,就是msdn错了,不过总觉得比较奇怪,msdn不该出这样的错的