how to embed a gnuplot graph inside a CFormView view

Juan Humberto Artero Jaimez 1 Reputation point
2021-04-29T18:32:33.82+00:00

I've developed an application with Visual C ++ 16 2019 based on MDI MFC CFormView.
The document / view architecture it works out of 10, and my algorithms perfectly graph equations of 1 variable, and not so much of my desire, equations of 2 variables.
I have implemented Gnuplot to improve the image quality of 3D graphics and I can control Gnuplot graphics from my dialog box.
I've installed Boost through vcpkg to pipe data from my dialog box to gnuplot.exe.
This works fine, what I want is to embed the gnuplot graphics inside my FormView view because
the gnuplot graph is floating in my formView view.
And that's the question my friend.
How to embed the gnuplot graph inside my CFormView so that both are a whole.
I hope a serious answer.
plotter_5.jpg
Best regard

Developer technologies | C++
{count} votes

1 answer

Sort by: Most helpful
  1. Guido Franzke 2,191 Reputation points
    2021-04-30T08:01:35.327+00:00

    Hello,
    it is not possible to embed a GUI exe into a view. You can only run the exe from your application.
    Windows applications always run in their own main window. It is not possible to embed the window of the exe into your exe.
    Regards, Guido


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.