|
-
August 4th, 2011, 08:59 AM
#1
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..??
-
August 4th, 2011, 01:44 PM
#2
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.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|