i have created a windows form using visual c++ and wants to open a choose a file using a button(named open) on the form and i already have a c++ code that reads and calculates some mathematical terms now i want to use my c++ existing code for reading and doing the rest calculations can anybody tell how to integrate them..


here is what it looks like

private: System::Void openToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {

OpenFileDialog ^ openFileDialog1 = gcnew OpenFileDialog();
}



now i want my c++ code to do the reading part.. how to do it..??