CArray<double,double*> pointer ??
-
I cannot figure out the syntax of passing CArray pointer to a function. Can anybody point me to a source of info? Thanks Vaclav
The
*
goes after the type name (doesn't matter if it's a template class or not, the rule is the same):CArray<double,double*>*
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Shots do not hurt other players... yet -
I cannot figure out the syntax of passing CArray pointer to a function. Can anybody point me to a source of info? Thanks Vaclav
Hello, In addition to what Micheal Dunn said, typedefs make your life more easy when you use templates extensively:
typedef CArray<double, double> CArrayDouble;
CArrayDouble* pArrayDouble = new CArrayDouble();Hope this helps. :-D Behind every great black man... ... is the police. - Conspiracy brother Blog[^]
-
The
*
goes after the type name (doesn't matter if it's a template class or not, the rule is the same):CArray<double,double*>*
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ Shots do not hurt other players... yet