Click here to Skip to main content
16,008,299 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Information extraction from website Pin
georgiek5022-Dec-02 23:54
georgiek5022-Dec-02 23:54 
GeneralRe: Information extraction from website Pin
Scott H. Settlemier23-Dec-02 5:06
Scott H. Settlemier23-Dec-02 5:06 
GeneralRe: Information extraction from website Pin
georgiek5023-Dec-02 6:53
georgiek5023-Dec-02 6:53 
GeneralRe: Information extraction from website Pin
Scott H. Settlemier23-Dec-02 7:46
Scott H. Settlemier23-Dec-02 7:46 
GeneralRe: Information extraction from website Pin
georgiek5023-Dec-02 8:29
georgiek5023-Dec-02 8:29 
GeneralRe: Information extraction from website Pin
Scott H. Settlemier23-Dec-02 8:51
Scott H. Settlemier23-Dec-02 8:51 
GeneralRe: Information extraction from website Pin
georgiek5023-Dec-02 12:23
georgiek5023-Dec-02 12:23 
Generallinking problem Pin
Luke Murray22-Dec-02 0:19
Luke Murray22-Dec-02 0:19 
Hey I have a linking problem that i can't seem to get rid of. I have a base class say:
class Base {
public:
    void draw();
private:
    ....
};
Then I have a class from that..
class Something : public Base {
public:
    void draw();
private:
    ....
};
I then have a std::list<Base> which I add objects to of type Something. i then go through the list and call each draw method.
// objects is the std::list
std::list<Base>::iterator item;
for ( item = objects.begin(); item != objects.end(); item++) {
    Base obj = *item;
    obj.draw();
}
But I get this error
error LNK2019: unresolved external symbol "public: void __thiscall Base::draw(void)" (?draw@Base@@QAEXXZ) referenced in function "public: bool __thiscall Sence::update(void)" (?update@Sence@@QAE_NXZ)

The std::list and the iteration of the list is done in another class. Reading the MSDN description of the error I can not firgure out whats wrong. commenting out the obj.draw(); line fixing it.

Any ideas? thanks.

Luke.
GeneralRe: linking problem Pin
Mike Nordell22-Dec-02 0:32
Mike Nordell22-Dec-02 0:32 
GeneralRe: linking problem Pin
Luke Murray22-Dec-02 0:51
Luke Murray22-Dec-02 0:51 
GeneralRe: linking problem Pin
Michael Dunn22-Dec-02 5:37
sitebuilderMichael Dunn22-Dec-02 5:37 
GeneralRe: linking problem Pin
Luke Murray22-Dec-02 19:43
Luke Murray22-Dec-02 19:43 
GeneralRe: linking problem Pin
Scott H. Settlemier23-Dec-02 6:01
Scott H. Settlemier23-Dec-02 6:01 
Generalwhere can i download visual c++ setup!! Pin
dianazheng21-Dec-02 23:23
dianazheng21-Dec-02 23:23 
GeneralRe: where can i download visual c++ setup!! Pin
Mike Nordell22-Dec-02 0:34
Mike Nordell22-Dec-02 0:34 
GeneralRe: where can i download visual c++ setup!! Pin
Brian Delahunty22-Dec-02 3:12
Brian Delahunty22-Dec-02 3:12 
GeneralRe: where can i download visual c++ setup!! Pin
dianazheng22-Dec-02 14:35
dianazheng22-Dec-02 14:35 
GeneralRe: where can i download visual c++ setup!! Pin
Jacques Troux22-Dec-02 5:40
sussJacques Troux22-Dec-02 5:40 
GeneralRe: where can i download visual c++ setup!! Pin
Christian Graus22-Dec-02 11:21
protectorChristian Graus22-Dec-02 11:21 
GeneralCreateProcessWithLogonW Pin
Mazdak21-Dec-02 21:37
Mazdak21-Dec-02 21:37 
GeneralRe: CreateProcessWithLogonW Pin
Gary R. Wheeler22-Dec-02 5:15
Gary R. Wheeler22-Dec-02 5:15 
GeneralRe: CreateProcessWithLogonW Pin
Michael Dunn22-Dec-02 5:41
sitebuilderMichael Dunn22-Dec-02 5:41 
Generalcallback Pin
king_of_the_world21-Dec-02 20:51
king_of_the_world21-Dec-02 20:51 
GeneralRe: callback Pin
Paul M Watt21-Dec-02 21:48
mentorPaul M Watt21-Dec-02 21:48 
GeneralRe: callback Pin
king_of_the_world22-Dec-02 2:16
king_of_the_world22-Dec-02 2:16 

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.