Click here to Skip to main content
15,914,013 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionException Pin
john56328-Dec-10 19:58
john56328-Dec-10 19:58 
AnswerRe: Exception Pin
Cedric Moonen8-Dec-10 20:44
Cedric Moonen8-Dec-10 20:44 
AnswerRe: Exception Pin
Luc Pattyn8-Dec-10 20:44
sitebuilderLuc Pattyn8-Dec-10 20:44 
AnswerRe: Exception Pin
CPallini8-Dec-10 21:08
mveCPallini8-Dec-10 21:08 
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 
hello guys... I need to use some private function in the dll so that they might do some work for other functions that are called by original application.but im getting this error that states "illegal call of non-static member function". Here is what I am trying to do

MyDll.h
-----------
namespace MyDll
{
	class MyOwnDll
	{
	private:
		void msg();
	public:
		static _declspec(dllexport) double func(double a, double b);  
         };
}

MyDll.cpp
------------
namespace MyDll
{

            void MyOwnDll::msg()
            { cout<<"The result is:  ";}

            void MyOwnDll::func(double a, double b)
            {   
                msg(); //here is the error:'class::function' : illegal call of non-static member function
                cout<< a+b;       
            } 
}

How can I do this? thnx
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 
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 

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.