Click here to Skip to main content
16,004,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Internal class Pin
Mark Salsbery30-May-07 11:10
Mark Salsbery30-May-07 11:10 
AnswerRe: Internal class Pin
Matthew Faithfull30-May-07 12:55
Matthew Faithfull30-May-07 12:55 
AnswerRe: Internal class Pin
Bram van Kampen30-May-07 14:43
Bram van Kampen30-May-07 14:43 
QuestionLONG_PTR (Hungarian notation) Pin
bob1697230-May-07 9:40
bob1697230-May-07 9:40 
AnswerRe: LONG_PTR (Hungarian notation) Pin
Matthew Faithfull30-May-07 10:17
Matthew Faithfull30-May-07 10:17 
GeneralRe: LONG_PTR (Hungarian notation) Pin
bob1697230-May-07 12:02
bob1697230-May-07 12:02 
AnswerRe: LONG_PTR (Hungarian notation) Pin
Hans Dietrich30-May-07 10:43
mentorHans Dietrich30-May-07 10:43 
GeneralRe: LONG_PTR (Hungarian notation) Pin
bob1697230-May-07 11:53
bob1697230-May-07 11:53 
Thanks for the guidance.

CArray::GetSize() returns INT_PTR in MFC 7.1
This unfortunately is not a pointer so using "lp" can be confusing here since anytime I see "lp", an arrow operator is always dancing in my head.

With GetWindowLongPtr(), it returns LONG_PTR and can on occasion, such as when using GWLP_USERDATA possibly represent a pointer if the user squirreled one away in there for use in a static callback method.

I'm finding it more common anymore to come across things that use it for items of size and occasionally for pointers so I'm not sure a naming convention that mixes with a plain old pointer convention wouldn't confuse others and myself later on.

I've been toying with "np" but it just doesn't flow.


GeneralRe: LONG_PTR (Hungarian notation) Pin
Matthew Faithfull30-May-07 12:50
Matthew Faithfull30-May-07 12:50 
QuestionIStorage problem Pin
josip cagalj30-May-07 7:19
josip cagalj30-May-07 7:19 
QuestionRe: IStorage problem Pin
Mark Salsbery30-May-07 7:45
Mark Salsbery30-May-07 7:45 
AnswerRe: IStorage problem Pin
josip cagalj30-May-07 21:39
josip cagalj30-May-07 21:39 
GeneralRe: IStorage problem Pin
Mark Salsbery31-May-07 5:21
Mark Salsbery31-May-07 5:21 
GeneralRe: IStorage problem Pin
josip cagalj31-May-07 23:17
josip cagalj31-May-07 23:17 
GeneralRe: IStorage problem Pin
Mark Salsbery1-Jun-07 4:58
Mark Salsbery1-Jun-07 4:58 
Question[Message Deleted] Pin
joshp121730-May-07 5:01
joshp121730-May-07 5:01 
AnswerRe: I need Help with this Function Pin
toxcct30-May-07 5:06
toxcct30-May-07 5:06 
GeneralRe: I need Help with this Function Pin
joshp121730-May-07 5:10
joshp121730-May-07 5:10 
GeneralRe: I need Help with this Function Pin
Hamid_RT30-May-07 8:50
Hamid_RT30-May-07 8:50 
GeneralRe: I need Help with this Function Pin
joshp121730-May-07 8:51
joshp121730-May-07 8:51 
GeneralRe: I need Help with this Function Pin
Jeffrey Walton30-May-07 11:31
Jeffrey Walton30-May-07 11:31 
AnswerRe: I need Help with this Function Pin
#realJSOP30-May-07 6:09
professional#realJSOP30-May-07 6:09 
QuestionCEdit :ModifyStyle Pin
baerten30-May-07 4:45
baerten30-May-07 4:45 
AnswerRe: CEdit :ModifyStyle Pin
Mark Salsbery30-May-07 5:33
Mark Salsbery30-May-07 5:33 
GeneralRe: CEdit :ModifyStyle Pin
baerten31-May-07 0:59
baerten31-May-07 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.