Click here to Skip to main content
15,917,609 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to resize toolbar when it was floating? Pin
3-Jun-02 3:22
suss3-Jun-02 3:22 
AnswerRe: How to resize toolbar when it was floating? Pin
Tomasz Sowinski3-Jun-02 3:49
Tomasz Sowinski3-Jun-02 3:49 
Generalproblem:How draw text with NOT mode Pin
Alexey Kourakolov3-Jun-02 2:16
Alexey Kourakolov3-Jun-02 2:16 
GeneralRe: problem:How draw text with NOT mode Pin
Tomasz Sowinski3-Jun-02 2:59
Tomasz Sowinski3-Jun-02 2:59 
GeneralRe: problem:How draw text with NOT mode Pin
Alexey Kourakolov3-Jun-02 3:16
Alexey Kourakolov3-Jun-02 3:16 
GeneralProblems with my DLL Pin
3-Jun-02 2:03
suss3-Jun-02 2:03 
GeneralRe: Problems with my DLL Pin
Mike Nordell3-Jun-02 22:51
Mike Nordell3-Jun-02 22:51 
GeneralCreate a Linked List BaseClass Pin
Bug3-Jun-02 1:57
Bug3-Jun-02 1:57 
Can someone help me in the right direction? I am really stuck trying to create my own linked list base class.
The problem shows up when I derive a class from the linked list base class.

Because within the baseclass I want to manage the list and add new nodes, but these are forced be like ' new CBaseClassList'. So that derived classes do not truly inherit the linked list ability, since only base class nodes are added. I hope I made my problem clear. Let my try to explain better in simple code:


class CBaseClassList
{
CBaseClassList *liststart_node;
AddNode();
int basedata;
}
CBaseClassList::AddNode()
{
liststart_node = new CBaseClassList();
}


class CDerivedClass : public CBaseClassList
{
int deriveddata;
DoStuff();
}
CDerivedClass::DoStuff()
{
// Adding a new node from within the derived class will only create
// a node based on the baseclass!!
// So I am not able to use CDerivedClass datamembers
AddNode();

// OK:
liststart_node->basedata = 10;
// impossible:
liststart_node->deriveddata
}


Please note that I really want the baseclass to stay as absract as possible so that I neednt create multiple linked list code in my project and that I can use it for pretty much anything. Just one baseclass linked list to derive and inherrit linked list ability from. I do know about STL, but I need my own baseclass list construction in this project (in relation to fast code).

GeneralRe: Create a Linked List BaseClass Pin
Tomasz Sowinski3-Jun-02 1:54
Tomasz Sowinski3-Jun-02 1:54 
GeneralRe: Create a Linked List BaseClass Pin
3-Jun-02 5:01
suss3-Jun-02 5:01 
GeneralRe: Create a Linked List BaseClass Pin
Bug3-Jun-02 22:43
Bug3-Jun-02 22:43 
GeneralThread Pin
Mazdak3-Jun-02 1:28
Mazdak3-Jun-02 1:28 
GeneralRe: Thread Pin
Tomasz Sowinski3-Jun-02 1:32
Tomasz Sowinski3-Jun-02 1:32 
GeneralRe: Thread Pin
Mazdak3-Jun-02 2:42
Mazdak3-Jun-02 2:42 
QuestionHow to add min, max and close button to the menu bar? Pin
melwyn3-Jun-02 1:05
melwyn3-Jun-02 1:05 
AnswerRe: How to add min, max and close button to the menu bar? Pin
Sonu Kapoor3-Jun-02 1:29
Sonu Kapoor3-Jun-02 1:29 
Questionhow to write a small debugger in c++? Pin
hwnd3-Jun-02 1:01
hwnd3-Jun-02 1:01 
AnswerRe: how to write a small debugger in c++? Pin
Tomasz Sowinski3-Jun-02 1:15
Tomasz Sowinski3-Jun-02 1:15 
QuestionDevice driver ? Pin
Girish Shriniwas Pathak3-Jun-02 0:46
Girish Shriniwas Pathak3-Jun-02 0:46 
AnswerRe: Device driver ? Pin
Mike Nordell3-Jun-02 22:54
Mike Nordell3-Jun-02 22:54 
GeneralRe: Device driver ? Pin
5-Jun-02 23:12
suss5-Jun-02 23:12 
GeneralMSDN Integration with Visual C++.NET Pin
Orbital^3-Jun-02 0:45
Orbital^3-Jun-02 0:45 
GeneralRe: MSDN Integration with Visual C++.NET Pin
Nish Nishant3-Jun-02 0:58
sitebuilderNish Nishant3-Jun-02 0:58 
GeneralRe: MSDN Integration with Visual C++.NET Pin
Orbital^3-Jun-02 1:08
Orbital^3-Jun-02 1:08 
GeneralRe: MSDN Integration with Visual C++.NET Pin
Anders Molin3-Jun-02 2:35
professionalAnders Molin3-Jun-02 2:35 

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.