Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mteichta

    returning sub names

    is there a way to pass between members the name of the calling member ?
  2. mteichta

    Structures and Template

    thanks for your help. but lets assume this following struct test { int value; }; test data; CQueue<test*> Queue; Queue.Show(data); template <class T> CQueue::Show(T* input) { this function is unaware of the members of data hence i cannot do input.??? or input->??? You are right...
  3. mteichta

    Structures and Template

    Hi all, Im hoping someone might be able to assist. If i pass a struct type to a template then i dont know the struct elements, right ? how can i them create a sub routine to display elements of generic structs ?
  4. mteichta

    TEMPLATE ERRORS

    Could someone please take a look at the code below and let me know why i get the following error ? error C2660: 'Display' : function does not take 1 parameters Error executing cl.exe. template <class T> class Queue { public: Queue() ; ~Queue() ; Display(int val) {...
  5. mteichta

    URGENT: Refering to Thread: Templates, Classes and unresolved symbols

    Dear All, I am desperately seeking a solution for the issues raised in the thread: Templates, Classes and unresolved symbols Could someone please assist ?
  6. mteichta

    Templates, Classes and unresolved symbols

    hi thanks for the input but this didnt solve the problem. i implemented what you suggested and I recieved the same error. the example you give shows how to pass a generic value, i need to pass both generic and specific parameters. For example test.Display(data,1); but i cant get the...
  7. mteichta

    Templates, Classes and unresolved symbols

    Ok.. i now have template <class T> class Queue { public: Queue() ; ~Queue() ; void Display(int value){}; }; Queue<int> TItems; int test=1; TItems.Display(test); SAME ERROR !!!
  8. mteichta

    Templates, Classes and unresolved symbols

    i have now moved all into the one header...i now have another problem i have template <class T> class Queue { public: Queue() ; ~Queue() ; void Display(int value); }; template <class T> Queue<T>::Queue() { } template <class T> Queue<T>::~Queue() { } template <class T> void...
  9. mteichta

    Templates, Classes and unresolved symbols

    Dear All, I have the following I have created a templated class defined as template <class T> class Queue { public: Queue(); ~Queue(); Display(); }; this sits in templclasses.h and the following in templclasses.cpp #include &quot;stdafx.h&quot; #include &quot;templclasses.h&quot...

Part and Inventory Search

Back
Top