Hw to use CArray template
-
Hi , i was just trying to use CArray template and ooops it gave hundreds of errors.When i get rid of it it compiles.an anybody help me to fix it OK. what i added : I have a person class in another file. and the code to create CArray is: CArray m_PersonArray; what is the wrog with it?should i include some header files, just give this beginner a hint with greetings Özgür Bachelor of Control&Computer Engineering from IStanbul Technical University Worked with Delphi for 6 Months Worked with Java for 3 Months Now ,Working with MFC,VIsual C++6.0 and ADO
-
Hi , i was just trying to use CArray template and ooops it gave hundreds of errors.When i get rid of it it compiles.an anybody help me to fix it OK. what i added : I have a person class in another file. and the code to create CArray is: CArray m_PersonArray; what is the wrog with it?should i include some header files, just give this beginner a hint with greetings Özgür Bachelor of Control&Computer Engineering from IStanbul Technical University Worked with Delphi for 6 Months Worked with Java for 3 Months Now ,Working with MFC,VIsual C++6.0 and ADO
Hi, You need to #include probably in stdafx.h for ease. Also you will need a copy constructor and operator= for your class yourclass(const yourclass& c) yourclasss& operator=(const yourclass& rhs) HTH Bob.
-
Hi, You need to #include probably in stdafx.h for ease. Also you will need a copy constructor and operator= for your class yourclass(const yourclass& c) yourclasss& operator=(const yourclass& rhs) HTH Bob.
oops, the name of the header you need is
-
oops, the name of the header you need is
darn this thing, it's... afxtempl.h
-
Hi , i was just trying to use CArray template and ooops it gave hundreds of errors.When i get rid of it it compiles.an anybody help me to fix it OK. what i added : I have a person class in another file. and the code to create CArray is: CArray m_PersonArray; what is the wrog with it?should i include some header files, just give this beginner a hint with greetings Özgür Bachelor of Control&Computer Engineering from IStanbul Technical University Worked with Delphi for 6 Months Worked with Java for 3 Months Now ,Working with MFC,VIsual C++6.0 and ADO
Assuming that the class is called person you can do two things: One: This is how to create a CArray of 'person's
CArray<person, person> m_PersonArray
Two: you can ditch CArray for the dog it is and use STL :) Oh, use an ampersand (shift 7) and lt or gt for the < or > signs, or otherwise all you'll do is lose everything inbetween them, as it's parsed as a HTML tag. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.
-
Hi , i was just trying to use CArray template and ooops it gave hundreds of errors.When i get rid of it it compiles.an anybody help me to fix it OK. what i added : I have a person class in another file. and the code to create CArray is: CArray m_PersonArray; what is the wrog with it?should i include some header files, just give this beginner a hint with greetings Özgür Bachelor of Control&Computer Engineering from IStanbul Technical University Worked with Delphi for 6 Months Worked with Java for 3 Months Now ,Working with MFC,VIsual C++6.0 and ADO