从Windows Form Applicaion运行CPP文件 [英] Running cpp file from windows form applicaion
本文介绍了从Windows Form Applicaion运行CPP文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我创建了一个名为form1.h
的Windows窗体.
以这种形式,我创建了一个按钮.我有一些abc.cpp文件.
现在单击按钮",我要运行abc.cpp文件.
我已将此abc.cpp添加到项目的源文件中.
怎么做?
预先感谢您....
Hello,
I have created a Windows form with name form1.h
In this form, I have created a button. I have some abc.cpp file.
Now on Button click, i want to run the abc.cpp file.
I have added this abc.cpp to source files of my project.
How to do that?
Thank u in advance....
推荐答案
严格来说,您不运行.cpp
文件,而是运行应用程序,即可执行文件(即已编译的源文件) ).
我强烈建议您阅读有关编写Windows
应用程序的教程(根据个人喜好使用MFC
或Win32 API
).您可能还会看一个简单的应用程序示例(同样,MFC
提供了一个或一个Windows Platform SDK
附带的MFC
).
:-)
Strictly speaking you don''t run.cpp
files, you run applications, i.e. executable files (i.e. compiled source files).
I strongly suggest you reading a tutorial on writingWindows
applications (either usingMFC
orWin32 API
, depending on your preferences). You may also have a look on a simple application example (again either anMFC
provided one or one shipped with theWindows Platform SDK
).
:-)
我是否可以建议您通过 ^ ].您将在其中找到问题的答案.
Can I suggest that you work your way through a few of the videos from this page[^]. You will find the answer to your question in them.
这篇关于从Windows Form Applicaion运行CPP文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文