You use C++/CLI.

It was specifically designed to handle these kinds of question.