Unmanaged C++ instantiation question
- by Jim Jones
Want to verify that my understanding of how this works.
Have an unmanaged C++ Class with one public instance variable:
char* character_encoding;
and whose only constructor is defined as:
TF_StringList(const char* encoding = "cp_1252");
when I use this class in either managed or unmanaged C++, the first thing I do is declare a pointer to an object of this class:
const TF_StringList * categories;
Then later I instantiate it:
categories = new TF_StringList();
this gives me a pointer to an object of type TF_StringList whose variable character_encoding is set to "cp_1252";
So, is all that logic valid?
Jim