If you create a mesh using 3ds Max and wish to capture the data as a sequence of C++ instructions for manually constructing the mesh can be very time consuming if the object contains a large number of vertices.
The MAXScript script found here can be used to write all the mesh generating instructing information to a header (.h) file that you can include in your project. The script can be found Here is how to use the script:
This will generate a header (.h) file that you can copy or include into the source of your plug-in.