I've created a simple dialog box program in standard Visual c++ (2005 not .net)

the first Dialog ask : How many Edit Boxes do you want to create ?

the user inserts a number, and in the next dialog the user will have the edit boxes.

So how can i create a random number of Edit Boxes and how can i associate the ID to work with the code ?

Does anyone have an example to create a random number of Edit Boxes, and how can i associate their own random ID ??