Thread: windows forms app c++ vs2010 express -- How do I connect it to my c++ software

  1. #1
    Registered User gilit2's Avatar
    Join Date
    Jan 2011
    Location
    Israel
    Posts
    10

    windows forms app c++ vs2010 express -- How do I connect it to my c++ software

    Hi

    I have a c++ software. I use visual studio express 2010.
    I want to use forms to enter the data into my software , and also make form manual.

    I opened win form project. I created Form1. with few buttons.
    I saw the Form1.h file, that was generated.

    Do I simply call my function from the Event handlers. like this :

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

    my_func(button3);
    }

    and then refer to the button handler from my function like this ?

    void my_func (System::Windows::Forms::Button ^ button_handl) {
    button_handl->Text = L" my own text";
    }



    Is this the way to do it ?

    (Note, I don't need web. it is a console application. )

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    This is C++/CLI, if you have C++ code already written, then maybe a MFC app is way easier.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Senior Software Engineer - Client Apps
    By iwannawork in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 06-17-2010, 10:07 PM
  2. How May I connect from Windows NT to Unix
    By jose luis in forum C Programming
    Replies: 3
    Last Post: 08-22-2002, 03:12 PM
  3. newbie question about using windows app in Dev C++
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 06-09-2002, 10:50 PM
  4. Microsoft software on a windows machine...
    By Syngyl in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 01-06-2002, 05:44 PM
  5. Turning a Console APP into Windows.
    By Darkflame in forum C++ Programming
    Replies: 3
    Last Post: 09-14-2001, 03:10 AM