Hello,
Please tell me how can i generate an array in mfc, how can push element and how can initialize array?
I want to make dynamic array of hexadecimal values.
Thanks.
The same way you would do it in a normal c++ program.
#include <vector>
int main()
{
std::vector<int> array;
}
MFC has a lot of container classes, and depending on what you want to do, they may or may not be better than std::vector or std::list. Your compiler CD/DVD includes hundreds of example programs that show how to use those container classes. Just browse your own computer for them.
What array in MFC? MFC has many array types (string array, word array, etc.,). See the MFC collections here: http://msdn.microsoft.com/en-us/library/942860sh%28v=VS.80%29.aspx
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.