Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow integrate Microsoft Platform SDK with Visual Studio 6.0 [modified] Pin
Schehaider_Aymen8-Dec-10 9:51
Schehaider_Aymen8-Dec-10 9:51 
AnswerRe: How integrate Microsoft Platform SDK with Visual Studio 6.0 Pin
Cool_Dev8-Dec-10 21:08
Cool_Dev8-Dec-10 21:08 
GeneralRe: How integrate Microsoft Platform SDK with Visual Studio 6.0 Pin
Schehaider_Aymen10-Dec-10 9:17
Schehaider_Aymen10-Dec-10 9:17 
QuestionDeclaring and using private function in DLL Pin
AmbiguousName8-Dec-10 6:51
AmbiguousName8-Dec-10 6:51 
AnswerRe: Declaring and using private function in DLL Pin
CPallini8-Dec-10 7:23
mveCPallini8-Dec-10 7:23 
AnswerRe: Declaring and using private function in DLL Pin
David Crow8-Dec-10 7:27
David Crow8-Dec-10 7:27 
AnswerRe: Declaring and using private function in DLL Pin
Rajesh R Subramanian8-Dec-10 19:44
professionalRajesh R Subramanian8-Dec-10 19:44 
AnswerRe: Declaring and using private function in DLL [modified] Pin
Cedric Moonen8-Dec-10 20:55
Cedric Moonen8-Dec-10 20:55 
You already got your answer but I'll give you a quick explanation why you have this problem.

Declaring a class method as static means that the method is not called in the context of a specific class, meaning that it is very similar as a global function (it is not associated with a specific class instance). The difference between a static and a non-static method is that for a non-static method, an implicit paramater is passed to the method when it is called: the this parameter, which identifies which class instance is associated with the call (so, when you do something like that: myClass.myFunc(), the address of myClass is passed implicitely to the function). For a static method, this is not the case, since it is not associated with a specific class instance. So, within a static method, there's no accessible class instance which can be passed as the implicit this parameter passed to the non-static method. That's the reason why you can't call a non-static method from a static method (unless you call it on a class instance like this: myClass.myFunc()).
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

modified on Thursday, December 9, 2010 5:35 AM

GeneralRe: Declaring and using private function in DLL Pin
Rajesh R Subramanian8-Dec-10 21:30
professionalRajesh R Subramanian8-Dec-10 21:30 
GeneralRe: Declaring and using private function in DLL Pin
Richard MacCutchan8-Dec-10 23:28
mveRichard MacCutchan8-Dec-10 23:28 
GeneralRe: Declaring and using private function in DLL Pin
Cedric Moonen8-Dec-10 23:37
Cedric Moonen8-Dec-10 23:37 
QuestionProcess exit memory released? Pin
vipin_nvk7-Dec-10 23:13
vipin_nvk7-Dec-10 23:13 
AnswerRe: Process exit memory released? Pin
bleedingfingers7-Dec-10 23:27
bleedingfingers7-Dec-10 23:27 
GeneralRe: Process exit memory released? Pin
vipin_nvk7-Dec-10 23:36
vipin_nvk7-Dec-10 23:36 
GeneralRe: Process exit memory released? Pin
bleedingfingers7-Dec-10 23:43
bleedingfingers7-Dec-10 23:43 
GeneralRe: Process exit memory released? Pin
vipin_nvk7-Dec-10 23:45
vipin_nvk7-Dec-10 23:45 
GeneralRe: Process exit memory released? Pin
Rajesh R Subramanian7-Dec-10 23:55
professionalRajesh R Subramanian7-Dec-10 23:55 
GeneralRe: Process exit memory released? Pin
Rajesh R Subramanian8-Dec-10 0:02
professionalRajesh R Subramanian8-Dec-10 0:02 
GeneralRe: Process exit memory released? Pin
vipin_nvk8-Dec-10 0:34
vipin_nvk8-Dec-10 0:34 
GeneralRe: Process exit memory released? Pin
Rajesh R Subramanian8-Dec-10 0:36
professionalRajesh R Subramanian8-Dec-10 0:36 
AnswerRe: Process exit memory released? Pin
Rajesh R Subramanian7-Dec-10 23:32
professionalRajesh R Subramanian7-Dec-10 23:32 
AnswerRe: Process exit memory released? Pin
Cedric Moonen8-Dec-10 0:16
Cedric Moonen8-Dec-10 0:16 
AnswerRe: Process exit memory released? Pin
Maximilien8-Dec-10 1:42
Maximilien8-Dec-10 1:42 
AnswerRe: Process exit memory released? Pin
Niklas L8-Dec-10 21:58
Niklas L8-Dec-10 21:58 
QuestionHow can identify why AfxBeginThread return value is NULL? Pin
Le@rner7-Dec-10 18:08
Le@rner7-Dec-10 18:08 

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.