Click here to Skip to main content
15,924,402 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCant use Ctrl+C etc. with CSplitterWnd Pin
ugur_basak5-Apr-05 1:40
ugur_basak5-Apr-05 1:40 
GeneralFlat CComboBoxEx Pin
BadJerry5-Apr-05 1:31
BadJerry5-Apr-05 1:31 
GeneralRe: Flat CComboBoxEx Pin
Alexander M.,5-Apr-05 8:36
Alexander M.,5-Apr-05 8:36 
Questionhow to setfocus.. Pin
mpallavi5-Apr-05 1:28
mpallavi5-Apr-05 1:28 
AnswerRe: how to setfocus.. Pin
toxcct5-Apr-05 1:49
toxcct5-Apr-05 1:49 
Generalthanx Pin
mpallavi5-Apr-05 1:57
mpallavi5-Apr-05 1:57 
GeneralWindows Tree view in vc++ Pin
accessnetwork5-Apr-05 1:21
accessnetwork5-Apr-05 1:21 
QuestionSelf-initilization of class? Pin
Gadjuka5-Apr-05 1:09
Gadjuka5-Apr-05 1:09 
I'm trying to program something like a plugin-system although I doesn't plan to use DLL-files at the moment. I have these files:
main.cpp, plugin.h, testplugin1.h, testplugin2.h
main.cpp contains the main-function, plugin.h contains the class plugin which is just a prototype and testplugin1 and testplugin2 inherits from this. Main.cpp and plugin.h doesn't know about testplugin1 or testplugin2, these will somehow have to register themselves - and this is the problem.
I've tried to create an instance of each plugin in it own h-file:
class testplugin1 : public plugin
{
...
}
testplugin1 plugin1;

The base class plugin has a register-function which is executed in the plugins' constructor.
I thought that this was a good idea but according to VS I never reach the row:
testplugin1 plugin1;

Thus ruining the whole idea...

Is it some small thing I'm missing or am I way off, and in that case - how should this be done?
AnswerRe: Self-initilization of class? Pin
S. Senthil Kumar5-Apr-05 1:29
S. Senthil Kumar5-Apr-05 1:29 
GeneralRe: Self-initilization of class? Pin
Cedric Moonen5-Apr-05 2:38
Cedric Moonen5-Apr-05 2:38 
GeneralRe: Self-initilization of class? Pin
Ravi Bhavnani5-Apr-05 2:55
professionalRavi Bhavnani5-Apr-05 2:55 
GeneralRe: Self-initilization of class? Pin
S. Senthil Kumar5-Apr-05 4:23
S. Senthil Kumar5-Apr-05 4:23 
GeneralRe: Self-initilization of class? Pin
Ravi Bhavnani5-Apr-05 5:46
professionalRavi Bhavnani5-Apr-05 5:46 
AnswerRe: Self-initilization of class? Pin
Cedric Moonen5-Apr-05 2:29
Cedric Moonen5-Apr-05 2:29 
AnswerRe: Self-initilization of class? Pin
Gadjuka5-Apr-05 5:42
Gadjuka5-Apr-05 5:42 
GeneralRe: Self-initilization of class? Pin
S. Senthil Kumar5-Apr-05 20:49
S. Senthil Kumar5-Apr-05 20:49 
GeneralUrgent Help Pin
5-Apr-05 0:43
suss5-Apr-05 0:43 
GeneralTree view in vc++ Pin
accessnetwork5-Apr-05 0:41
accessnetwork5-Apr-05 0:41 
GeneralRe: Tree view in vc++ Pin
ThatsAlok5-Apr-05 0:53
ThatsAlok5-Apr-05 0:53 
GeneralImmediate Repainting of a ListCtrl Pin
Franz Klein5-Apr-05 0:16
Franz Klein5-Apr-05 0:16 
GeneralRe: Immediate Repainting of a ListCtrl Pin
Blake Miller6-Apr-05 6:31
Blake Miller6-Apr-05 6:31 
GeneralPlease help me! Pin
dSolariuM5-Apr-05 0:04
dSolariuM5-Apr-05 0:04 
GeneralRe: Please help me! Pin
David Crow5-Apr-05 3:05
David Crow5-Apr-05 3:05 
GeneralPlease help me! Pin
dSolariuM4-Apr-05 23:38
dSolariuM4-Apr-05 23:38 
GeneralRe: Please help me! Pin
ThatsAlok5-Apr-05 0:23
ThatsAlok5-Apr-05 0:23 

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.