Click here to Skip to main content
15,894,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIcon of MessageBox not display. Pin
Le@rner22-Nov-10 18:44
Le@rner22-Nov-10 18:44 
AnswerRe: Icon of MessageBox not display. Pin
Luc Pattyn22-Nov-10 20:35
sitebuilderLuc Pattyn22-Nov-10 20:35 
QuestionRe: Icon of MessageBox not display. Pin
David Crow23-Nov-10 3:11
David Crow23-Nov-10 3:11 
AnswerRe: Icon of MessageBox not display. Pin
Le@rner23-Nov-10 17:09
Le@rner23-Nov-10 17:09 
QuestionI meet one problem, I donot know how to debug the JNI(java native code) project? Pin
yu-jian22-Nov-10 17:56
yu-jian22-Nov-10 17:56 
QuestionVc++ Project file(.dsp) use get all cpp function name? it is possible? Pin
mathivanaan22-Nov-10 17:43
mathivanaan22-Nov-10 17:43 
AnswerRe: Vc++ Project file(.dsp) use get all cpp function name? it is possible? Pin
Cool_Dev23-Nov-10 1:03
Cool_Dev23-Nov-10 1:03 
QuestionHow to export the drived class from one abstract class? And also STL container is used as private members. [modified] Pin
SAMZCN22-Nov-10 4:50
SAMZCN22-Nov-10 4:50 
In my case, I want to create one interface class and use it to employee the drived class implementation. The sample codes are as follows.

CInterfaceClass
{
public:
CInterfaceClass(){};
virtual ~CInterfaceClass(){};
virtual int Func1() = 0;
virtual int Func2() = 0;
virtual int Func3() = 0;
}

And the interface class will be used the DLL project and the client project.
Here the drived class in the DLL project and it will be exported and be used by the client project:
CMyDLLClass1 : public CInterfaceClass
{
public:
CMyDLLClass1 (){};
virtual ~ CMyDLLClass1 (){};
virtual int Func1();
virtual int Func2();
virtual int Func3();
private:
vector<...> ....
map<...> ....
}

And another DLL project may like this...
CMyDLLClass2 : public CInterfaceClass
{
public:
CMyDLLClass2 (){};
virtual ~ CMyDLLClass2 (){};
virtual int Func1();
virtual int Func2();
virtual int Func3();
private:
vector<...> ....
map<...> ....
}

In the client project, I want to use the exported class like this.
CInterfaceClass* pMyDllClass1 = new CMyDLLClass1();
pMyDllClass1->Func1();
pMyDllClass1->Func2();
pMyDllClass1->Func3();
CInterfaceClass* pMyDllClass2 = new CMyDLLClass2();
pMyDllClass2->Func1();
pMyDllClass2->Func2();
pMyDllClass2->Func3();

It seems that I can enter the functions. But many errors come out with STL members. I am confused on this usage of DLL.
Could you pls give your help on this ?

modified on Monday, November 22, 2010 7:57 PM

AnswerRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
Richard MacCutchan22-Nov-10 5:38
mveRichard MacCutchan22-Nov-10 5:38 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN22-Nov-10 14:04
SAMZCN22-Nov-10 14:04 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
Richard MacCutchan22-Nov-10 23:15
mveRichard MacCutchan22-Nov-10 23:15 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN23-Nov-10 1:22
SAMZCN23-Nov-10 1:22 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
Richard MacCutchan23-Nov-10 1:46
mveRichard MacCutchan23-Nov-10 1:46 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN23-Nov-10 2:49
SAMZCN23-Nov-10 2:49 
AnswerRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
CPallini22-Nov-10 7:10
mveCPallini22-Nov-10 7:10 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN22-Nov-10 14:06
SAMZCN22-Nov-10 14:06 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
CPallini22-Nov-10 21:01
mveCPallini22-Nov-10 21:01 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN22-Nov-10 23:15
SAMZCN22-Nov-10 23:15 
QuestionRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
CPallini22-Nov-10 23:20
mveCPallini22-Nov-10 23:20 
AnswerRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
Nisamudheen22-Nov-10 12:28
Nisamudheen22-Nov-10 12:28 
GeneralRe: How to export the drived class from one abstract class? And also STL container is used as private members. Pin
SAMZCN22-Nov-10 14:01
SAMZCN22-Nov-10 14:01 
Question890901 - getting the currently active child frame Pin
ilostmyid222-Nov-10 1:25
professionalilostmyid222-Nov-10 1:25 
AnswerRe: 890901 - getting the currently active child frame Pin
Nuri Ismail22-Nov-10 2:30
Nuri Ismail22-Nov-10 2:30 
GeneralRe: 890901 - getting the currently active child frame Pin
ilostmyid222-Nov-10 3:30
professionalilostmyid222-Nov-10 3:30 
QuestionError "Windows has triggered a breakpoint in test.exe" Pin
Le@rner21-Nov-10 23:49
Le@rner21-Nov-10 23:49 

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.