Click here to Skip to main content
15,915,703 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modeless API dialog hangs after creation Pin
KnaveR77721-Jun-05 17:18
KnaveR77721-Jun-05 17:18 
GeneralC help needed Pin
Tom Archer19-Jun-05 15:54
Tom Archer19-Jun-05 15:54 
GeneralRe: C help needed Pin
Neville Franks19-Jun-05 19:19
Neville Franks19-Jun-05 19:19 
GeneralRe: C help needed Pin
Christian Graus19-Jun-05 20:03
protectorChristian Graus19-Jun-05 20:03 
GeneralRe: C help needed Pin
Christian Graus19-Jun-05 20:10
protectorChristian Graus19-Jun-05 20:10 
GeneralRe: C help needed Pin
Jack Squirrel Jr.20-Jun-05 0:12
sussJack Squirrel Jr.20-Jun-05 0:12 
GeneralRe: C help needed Pin
David Crow20-Jun-05 3:12
David Crow20-Jun-05 3:12 
GeneralRe: C help needed Pin
Bob Stanneveld19-Jun-05 20:40
Bob Stanneveld19-Jun-05 20:40 
Hello,

As Christian mentioned, you can write your own linked list. Basically you can write a set of functions for traversing your set of structures. A basic idea of this:
struct JobCodeNode
{
    // these should be at the first 8 bytes, so you can manipulate them without 
    // typecasting them to the actual type
    JobCodeNode* pNext;
    JobCodeNode* pPrev; // leave this out if you don't need a bi-directional list

    JobCode* pNode;
};

struct LinkedList
{
    void* pStartNode;
    void* pCurrentNode; // more difficult to implement, but certainly speeds up things
};

// functions that traverse the list
LinkedList InitLList(void* pStart)
{
    LinkedList LList;
    LList->pStartNode = pStart;
    LList->pCurrentNode = pStart;

    // you can initialize the start node too
    ((int*)pStart) = NULL; // next node
    ((int*)(pStart + 4)) = NULL; // prev node

    return LList;
}

// other traversing routines


This is just a basic idea and it can be extended beyond peoples imagination...

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
GeneralRe: C help needed Pin
Tom Archer20-Jun-05 1:27
Tom Archer20-Jun-05 1:27 
GeneralRe: C help needed Pin
John R. Shaw20-Jun-05 6:08
John R. Shaw20-Jun-05 6:08 
GeneralRe: C help needed Pin
Tom Archer20-Jun-05 21:24
Tom Archer20-Jun-05 21:24 
GeneralRe: C help needed Pin
Bob Stanneveld20-Jun-05 20:41
Bob Stanneveld20-Jun-05 20:41 
Generalwindows hicon problem Pin
c. s.19-Jun-05 14:33
c. s.19-Jun-05 14:33 
GeneralRe: windows hicon problem Pin
Rage19-Jun-05 22:02
professionalRage19-Jun-05 22:02 
GeneralRe: windows hicon problem Pin
c. s.21-Jun-05 18:08
c. s.21-Jun-05 18:08 
Questionplease can any one help me ???? Pin
kosamoza19-Jun-05 13:33
kosamoza19-Jun-05 13:33 
AnswerRe: please can any one help me ???? Pin
Christian Graus19-Jun-05 20:11
protectorChristian Graus19-Jun-05 20:11 
GeneralRe: please can any one help me ???? Pin
toxcct19-Jun-05 20:44
toxcct19-Jun-05 20:44 
AnswerRe: please can any one help me ???? Pin
Bob Stanneveld19-Jun-05 20:46
Bob Stanneveld19-Jun-05 20:46 
GeneralRe: please can any one help me ???? Pin
kosamoza20-Jun-05 6:57
kosamoza20-Jun-05 6:57 
GeneralRe: please can any one help me ???? Pin
Bob Stanneveld20-Jun-05 20:36
Bob Stanneveld20-Jun-05 20:36 
GeneralRe: please can any one help me ???? Pin
Anonymous21-Jun-05 4:42
Anonymous21-Jun-05 4:42 
GeneralRe: please can any one help me ???? Pin
Bob Stanneveld21-Jun-05 20:34
Bob Stanneveld21-Jun-05 20:34 
AnswerRe: please can any one help me ???? Pin
FlyingTinman20-Jun-05 10:25
FlyingTinman20-Jun-05 10:25 
GeneralRe: please can any one help me ???? Pin
kosamoza20-Jun-05 10:47
kosamoza20-Jun-05 10:47 

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.