Ok, so here is an interesting comparison. I found 3 examples.
1. DirectX 3D Cube Example in VC++
2. OpenGL 3D Cube + 3D Triangle in VC++
3. GLUT 3D Cube + 3D Triangle in C++ (GLUT)
1.
Follow
this link to see the code. I didn't feel like piecing it together.
2.
3.
Now, if you will notice the major difference in the 3, basically the length of the code to do pretty much the same thing, all lies in the different toolkits you use to create your GUI elements and Windows. The actually DRAWING of the 3D stuff is almost the same in all 3 except the DirectX where there is a bit more to do to set it up.
Plus, if you use #3, you aren't limited to Windows OS.