Click here to Skip to main content
15,905,148 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to register dll or ocx file via c++ code Pin
Shivanand Gupta26-Jun-10 2:47
Shivanand Gupta26-Jun-10 2:47 
QuestionGeneral MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow25-Jun-10 6:30
ForNow25-Jun-10 6:30 
AnswerRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Aescleal25-Jun-10 6:49
Aescleal25-Jun-10 6:49 
AnswerRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Niklas L25-Jun-10 6:50
Niklas L25-Jun-10 6:50 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow25-Jun-10 6:56
ForNow25-Jun-10 6:56 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 9:15
professionalRajesh R Subramanian25-Jun-10 9:15 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow25-Jun-10 10:39
ForNow25-Jun-10 10:39 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig25-Jun-10 16:19
Tim Craig25-Jun-10 16:19 
The line a:mymethod() would be ok IF you'd actually created an instance of class A named a which you've not shown so in the context we have it's not ok.

Using a call like A::mymethod() can only be done if mymethod is declared as a static member function, you need an instance of the class to call regular member functions.

Your ::mycall(private_data) won't work if you're expecting private_data from class A because, again, you'd need to have an instance of class A for the member private_data to exist. Now if mycall is a standalone function at global scope, you could call it as long as you have a variable named private_data defined in an accessible scope to the call.

I'd recommend you spend some time with a good introductory book to C++.
Once you agree to clans, tribes, governments...you've opted for socialism. The rest is just details.

GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 21:06
professionalRajesh R Subramanian25-Jun-10 21:06 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 16:59
ForNow26-Jun-10 16:59 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig26-Jun-10 17:55
Tim Craig26-Jun-10 17:55 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Niklas L25-Jun-10 20:55
Niklas L25-Jun-10 20:55 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 16:36
ForNow26-Jun-10 16:36 
AnswerRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Rajesh R Subramanian25-Jun-10 9:12
professionalRajesh R Subramanian25-Jun-10 9:12 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
ForNow26-Jun-10 17:01
ForNow26-Jun-10 17:01 
GeneralRe: General MFC C++ question What does :: any class or object on the left hand side mean Pin
Tim Craig26-Jun-10 22:41
Tim Craig26-Jun-10 22:41 
QuestionKickoff towards OLE Pin
Code-o-mat25-Jun-10 1:41
Code-o-mat25-Jun-10 1:41 
AnswerRe: Kickoff towards OLE Pin
Richard MacCutchan25-Jun-10 2:33
mveRichard MacCutchan25-Jun-10 2:33 
GeneralRe: Kickoff towards OLE [modified] Pin
Code-o-mat25-Jun-10 2:58
Code-o-mat25-Jun-10 2:58 
GeneralRe: Kickoff towards OLE Pin
Richard MacCutchan25-Jun-10 3:14
mveRichard MacCutchan25-Jun-10 3:14 
GeneralRe: Kickoff towards OLE Pin
Code-o-mat25-Jun-10 6:03
Code-o-mat25-Jun-10 6:03 
AnswerRe: Kickoff towards OLE Pin
Aescleal25-Jun-10 6:44
Aescleal25-Jun-10 6:44 
GeneralRe: Kickoff towards OLE Pin
Tim Craig25-Jun-10 9:50
Tim Craig25-Jun-10 9:50 
GeneralRe: Kickoff towards OLE Pin
Code-o-mat25-Jun-10 9:57
Code-o-mat25-Jun-10 9:57 
GeneralRe: Kickoff towards OLE Pin
Stephen Hewitt28-Jun-10 17:28
Stephen Hewitt28-Jun-10 17:28 

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.