How to create a triangle surface with API?

Hi,

I am programming on unmanaged c++. I need to create a set of triangle surfaces and create a solid body using these surfaces.

Here is how I do:

SolidworksApi macros