Click here to Skip to main content
15,917,618 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ScrollBar is disappering Pin
Hamid_RT26-Feb-09 19:21
Hamid_RT26-Feb-09 19:21 
GeneralRe: ScrollBar is disappering Pin
hemlat26-Feb-09 19:30
hemlat26-Feb-09 19:30 
GeneralRe: ScrollBar is disappering Pin
Hamid_RT26-Feb-09 21:04
Hamid_RT26-Feb-09 21:04 
GeneralRe: ScrollBar is disappering Pin
hemlat26-Feb-09 21:22
hemlat26-Feb-09 21:22 
GeneralRe: ScrollBar is disappering Pin
Hamid_RT26-Feb-09 23:32
Hamid_RT26-Feb-09 23:32 
QuestionExpression Question regarding C++ Syntax Pin
TheRainer26-Feb-09 17:43
TheRainer26-Feb-09 17:43 
AnswerRe: Expression Question regarding C++ Syntax Pin
_AnsHUMAN_ 26-Feb-09 17:53
_AnsHUMAN_ 26-Feb-09 17:53 
AnswerRe: Expression Question regarding C++ Syntax Pin
Stuart Dootson26-Feb-09 23:20
professionalStuart Dootson26-Feb-09 23:20 
TheRainer wrote:
1) expression:expression


If it's in this context

class A : public B


it indicates class inheritance (A inherits from B in htis example).

If it's in this context

cond?something:something_else


it's a conditional expression that returns something if cond is true and something_else is cond is false.

TheRainer wrote:
2) expression::expression


This can indicate either class or namespace membership.

some_class::some_item
explicitly references the some_item thing that is a member (inherited or otherwise) of some_class

some_namespace::some_item
explicitly references the some_item thing that is defined in the namespace some_namespace

TheRainer wrote:
3) expression->expression


This is the simplest one. This is for accessing a structure or class member using a pointer to the structure or class instance. So:

struct A { int B };

int X(A* a_pointer)
{
   return a_pointer->B;
}


It's equivalent to (*expression).expression

HTH!!!

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

Questionrectangle drawing using OpenGL [modified] Pin
Member 337533426-Feb-09 15:58
Member 337533426-Feb-09 15:58 
AnswerRe: rectangle drawing using OpenGL Pin
Nishad S26-Feb-09 18:36
Nishad S26-Feb-09 18:36 
AnswerRe: rectangle drawing using OpenGL Pin
Hamid_RT26-Feb-09 19:24
Hamid_RT26-Feb-09 19:24 
QuestionCreate SDI Application that Has No Menu Bar Pin
roynz26-Feb-09 15:55
roynz26-Feb-09 15:55 
Questionhow to send a tree control TVN_SELCHANGED message by portmessage() Pin
tyr200026-Feb-09 15:40
tyr200026-Feb-09 15:40 
AnswerRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
Nishad S26-Feb-09 18:45
Nishad S26-Feb-09 18:45 
AnswerRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
«_Superman_»26-Feb-09 18:56
professional«_Superman_»26-Feb-09 18:56 
GeneralRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
tyr200028-Feb-09 0:29
tyr200028-Feb-09 0:29 
GeneralRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
«_Superman_»28-Feb-09 3:41
professional«_Superman_»28-Feb-09 3:41 
GeneralRe: how to send a tree control TVN_SELCHANGED message by portmessage() Pin
tyr200028-Feb-09 20:25
tyr200028-Feb-09 20:25 
QuestionCStringW, wchar_t Pin
Member 475657426-Feb-09 12:28
Member 475657426-Feb-09 12:28 
AnswerRe: CStringW, wchar_t Pin
Stuart Dootson26-Feb-09 13:30
professionalStuart Dootson26-Feb-09 13:30 
QuestionRe: CStringW, wchar_t Pin
CPallini26-Feb-09 21:20
mveCPallini26-Feb-09 21:20 
AnswerRe: CStringW, wchar_t Pin
Hamid_RT26-Feb-09 23:30
Hamid_RT26-Feb-09 23:30 
JokeRe: CStringW, wchar_t Pin
CPallini26-Feb-09 23:38
mveCPallini26-Feb-09 23:38 
JokeRe: CStringW, wchar_t Pin
Hamid_RT27-Feb-09 3:31
Hamid_RT27-Feb-09 3:31 
JokeRe: CStringW, wchar_t Pin
CPallini27-Feb-09 6:27
mveCPallini27-Feb-09 6:27 

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.