-
help with gui
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..??
-
Re: help with gui
I don't really have a concrete idea of your requirements. Maybe you should explain them in more detail. For starters you may have a look at this thread: http://www.codeguru.com/forum/showth...openfiledialog. It contains sample code on using the OpenFileDialog class and subsequently loading data from the selected file, and even a downloadable toy project that can be used for experiments. Perhaps this already is helpful.