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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.