CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: help with gui

  1. #1
    Join Date
    Jul 2011
    Posts
    3

    Arrow 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..??

  2. #2
    Join Date
    Jun 2010
    Location
    Germany
    Posts
    2,675

    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
  •  





Click Here to Expand Forum to Full Width

Featured