I want to create an index page for which I need the page number from the Word document. I am working with C++ managed code and Word interop.
See here for info on this. This is for C#, but the classes are all available in C++/CLI.
There is page number info info here for including page numbers in a footer, and also on handling Table of Contents.