Click here to Skip to main content
16,012,168 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to import registry information to an access database Pin
aimanm8-Feb-04 17:37
aimanm8-Feb-04 17:37 
AnswerRe: How to import registry information to an access database Pin
David Crow9-Feb-04 5:53
David Crow9-Feb-04 5:53 
QuestionWebview or not? Pin
Prakash Nadar8-Feb-04 17:19
Prakash Nadar8-Feb-04 17:19 
GeneralCHtmlEditView Pin
VS Palani8-Feb-04 17:09
VS Palani8-Feb-04 17:09 
GeneralMFC release mode, list control & bitmaps Pin
User 5838528-Feb-04 16:43
User 5838528-Feb-04 16:43 
GeneralHelp with WMI Pin
Badut8-Feb-04 16:18
Badut8-Feb-04 16:18 
GeneralRe: Help with WMI Pin
David Crow9-Feb-04 6:06
David Crow9-Feb-04 6:06 
GeneralSilly little template question Pin
Ravi Bhavnani8-Feb-04 13:51
professionalRavi Bhavnani8-Feb-04 13:51 
I have a template Collection class defined as so (only a small portion of the class is shown here):

template < class T >
class Collection
{
  public:
    //! Constructs an empty Collection.
    Collection();
    //! Standard destructor
    virtual ~Collection();

  /* Operations */
  public:
    //! Stores an object by appending it to the collection.
    //! @param    pObject   Pointer to object.
    //! @return   The index of the added object.
    long add (T* pObject);

    //! Returns the object at a specific location in the collection.
    //! @param    nIndex    Location index.
    //! @return   A pointer to the object at the specified location.
    T* getAt (long nIndex);

    ...
}
I declare an instance of a Collection like so:
Collection< Foo > m_collectionOfFooObjects;
My project compiles fine, but I get several unresolved symbol link errors, one for each Collection method that returns a T* or void. The linker seems to have no problem finding methods that return long (eg: add()). I'm sure I'm doing something wrong but can't figure out what. Confused | :confused: Any help would be appreciated. Thanks!

(PS: The Collection class does more than store a collection of objects, hence it's more convenient to brew my own than use an STL or MFC object.)

/ravi

My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com

GeneralRe: Silly little template question Pin
Tim Smith8-Feb-04 14:56
Tim Smith8-Feb-04 14:56 
GeneralRe: Silly little template question Pin
Ravi Bhavnani8-Feb-04 15:05
professionalRavi Bhavnani8-Feb-04 15:05 
GeneralRe: Silly little template question Pin
Taka Muraoka8-Feb-04 16:24
Taka Muraoka8-Feb-04 16:24 
GeneralRe: Silly little template question Pin
Ravi Bhavnani9-Feb-04 2:02
professionalRavi Bhavnani9-Feb-04 2:02 
GeneralRe: Silly little template question Pin
Nemanja Trifunovic8-Feb-04 18:29
Nemanja Trifunovic8-Feb-04 18:29 
GeneralRe: Silly little template question Pin
Ravi Bhavnani9-Feb-04 2:00
professionalRavi Bhavnani9-Feb-04 2:00 
GeneralCString to unsigned long Pin
Irish_GUI8-Feb-04 13:50
Irish_GUI8-Feb-04 13:50 
GeneralRe: CString to unsigned long Pin
Ravi Bhavnani8-Feb-04 14:30
professionalRavi Bhavnani8-Feb-04 14:30 
GeneralJpystick in a MFC Program Pin
Grahamfff8-Feb-04 10:22
Grahamfff8-Feb-04 10:22 
GeneralNetwork design question Pin
Madmaximus8-Feb-04 7:15
Madmaximus8-Feb-04 7:15 
QuestionHow do I call a function from Cmainframe in CSampleView? Pin
Schniddel8-Feb-04 6:34
Schniddel8-Feb-04 6:34 
AnswerRe: How do I call a function from Cmainframe in CSampleView? Pin
Ravi Bhavnani8-Feb-04 14:33
professionalRavi Bhavnani8-Feb-04 14:33 
GeneralMFC question Pin
Dev5788-Feb-04 5:19
Dev5788-Feb-04 5:19 
GeneralRe: MFC question Pin
valikac8-Feb-04 6:20
valikac8-Feb-04 6:20 
GeneralRe: MFC question Pin
Dev5788-Feb-04 7:19
Dev5788-Feb-04 7:19 
GeneralRe: MFC question Pin
Nick Parker8-Feb-04 11:14
protectorNick Parker8-Feb-04 11:14 
QuestionRegEnumValue help?? Pin
YaronNir7-Feb-04 23:10
YaronNir7-Feb-04 23:10 

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.