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

C / C++ / MFC

 
GeneralRe: function problem Pin
David Crow15-Sep-04 4:49
David Crow15-Sep-04 4:49 
GeneralRe: function problem Pin
ISUstudent15-Sep-04 4:51
ISUstudent15-Sep-04 4:51 
GeneralRe: function problem Pin
David Crow15-Sep-04 5:10
David Crow15-Sep-04 5:10 
GeneralRe: function problem Pin
David Crow24-Sep-04 6:06
David Crow24-Sep-04 6:06 
GeneralRe: function problem Pin
Anonymous24-Sep-04 6:57
Anonymous24-Sep-04 6:57 
GeneralLinkedList Template - LNK2019 Pin
Milby00715-Sep-04 4:06
Milby00715-Sep-04 4:06 
GeneralRe: LinkedList Template - LNK2019 Pin
David Crow15-Sep-04 4:44
David Crow15-Sep-04 4:44 
GeneralRe: LinkedList Template - LNK2019 Pin
Milby00715-Sep-04 5:08
Milby00715-Sep-04 5:08 
here's a bit of main.cpp:

#include <string>
#include <iostream>

using namespace std;

#include "linkedlist.h"

void listfunc()
{
ListElement<string>* pStrElmt = NULL;
LinkedList<string>* pStrList = new LinkedList<string>;

string sData1("NUMERO UNO!");
string sData2("NUMERO DOS!");
string sData3("NUMERO TRES!");
string sData4("NUMERO QUATRO!");
string sData5("NUMERO CINQO!");

// element 1

pStrElmt = new ListElement<string>;

pStrElmt->SetData(&sData1);

pStrList->InsertNext(NULL, pStrElmt->GetData());

// element 2

pStrElmt = new ListElement<string>;

pStrElmt->SetData(&sData2);

pStrList->InsertNext(pStrList->GetTail(), pStrElmt->GetData());

// etc...

as you can see i've #include'd where needed, & it's compiled fine, but the linker doesn't like it.

GeneralRe: LinkedList Template - LNK2019 Pin
jmkhael15-Sep-04 5:04
jmkhael15-Sep-04 5:04 
GeneralRe: LinkedList Template - LNK2019 Pin
Milby00715-Sep-04 5:20
Milby00715-Sep-04 5:20 
GeneralRe: LinkedList Template - LNK2019 Pin
Bob Stanneveld15-Sep-04 6:31
Bob Stanneveld15-Sep-04 6:31 
QuestionWhat does *.hpp mean? Pin
mcgahanfl15-Sep-04 2:41
mcgahanfl15-Sep-04 2:41 
AnswerRe: What does *.hpp mean? Pin
David Crow15-Sep-04 2:50
David Crow15-Sep-04 2:50 
AnswerRe: What does *.hpp mean? Pin
markkuk15-Sep-04 3:16
markkuk15-Sep-04 3:16 
AnswerRe: What does *.hpp mean? Pin
Henry miller15-Sep-04 3:45
Henry miller15-Sep-04 3:45 
AnswerThank you Dave, Mark and Henry. Pin
mcgahanfl15-Sep-04 4:34
mcgahanfl15-Sep-04 4:34 
GeneralBizarre Close dialog action Pin
brianwelsch15-Sep-04 2:22
brianwelsch15-Sep-04 2:22 
GeneralRe: Bizarre Close dialog action Pin
Cedric Moonen15-Sep-04 2:35
Cedric Moonen15-Sep-04 2:35 
GeneralRe: Bizarre Close dialog action Pin
brianwelsch15-Sep-04 4:18
brianwelsch15-Sep-04 4:18 
GeneralRe: Bizarre Close dialog action Pin
David Crow15-Sep-04 4:58
David Crow15-Sep-04 4:58 
GeneralRe: Bizarre Close dialog action Pin
brianwelsch15-Sep-04 5:42
brianwelsch15-Sep-04 5:42 
GeneralRe: Bizarre Close dialog action Pin
David Crow15-Sep-04 5:48
David Crow15-Sep-04 5:48 
GeneralRe: Bizarre Close dialog action Pin
brianwelsch15-Sep-04 7:33
brianwelsch15-Sep-04 7:33 
GeneralRe: Bizarre Close dialog action Pin
David Crow15-Sep-04 7:45
David Crow15-Sep-04 7:45 
GeneralDisable F8 at startup Pin
sirtimid15-Sep-04 2:08
sirtimid15-Sep-04 2:08 

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.