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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no doubt a stupid question,but a little help with error C2926

Status
Not open for further replies.

Mynci

Technical User
Oct 31, 2002
16
GB
basically i am getting error C2926, it is brought about by this piece of code:

CLinkedList<struct TagStruct> TagStructList;

clinkedlist is a class that sontroles a liked list, this line is meant to create a list of struct TagStruct objects called TagStructList. the structure itself is made with this code:
struct stTagInfo
{
BYTE byMajorTag[2];
BYTE byMinorTag[2];
unsigned long ulTagPosition;
} TagStruct;

when i place the struct declaration in either the main cpp file or in a header i get the error on the line that defines the linked list. i know that i am doing something very obviously wrong but the error code does not make me see how to fix it, is it the struct that i need to give linkage to? if so how? can i even give something linkage? i am obviously fairly new to this lark and am sure i am doing something hugely wrong in the way i am trying to implement this, but i dont know how i am supposed to do it. If i have missed a needed piece of info please ask.
Many Many Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top