Dear Pahanuch,
unfortunately your code has nothig to do with VC++ not is it a native C++ code.
What you showed us looks like managed C++ code that is discussed in a corresponding Managed C++ and...