使用C++将Winforms添加到控制台应用程序中。
那是我在这里的第一个问题。我在最后几天浏览网络,但找不到任何明确的答案。 我有一个程序(另一个人制定),其中有5个标题和5个源文件中的代码约为2K。建立在 C ++ 和Visual Studio 2017中。它连接到拍摄图片并使用OpenCV计算一些东西的相机,并吐出XML文件,所有这些都形成为 Console Application 。 因此,现在我将在此程序中添加 gui 。我需要的按钮和内容不多,一种表格就足够了。因此,我将以某种方式添加 winforms (file?),或者更确切地说将程序为winforms。 但是我该怎么做呢?
我得到了“ cppclr_winformsprojekt” -app/template。但是我无法通过IE添加它。 projectName.sln-> add->新元素..就像某些对C#一样。 另一些确实添加了一些参考,但我没有任何选择。
好吧,也许我完全吠叫了错误的树。我确实是编程中的菜鸟,它不是我的真正职业,但是我应该并且会在现有的程序中添加GUI 。
不幸的是,我不允许添加任何图片。
thats my first question here. Im browsing the web the last days but cant find any clear answer.
I have a program (made by an other person) with about 2k lines of Code in 5 header- and 5 sourcefiles. Built in C++ and Visual Studio 2017. Its connected to cameras making pictures and calculating some stuff using OpenCV and spits out an XML-File, all made as Console Application.
So now i will add an GUI to this programm. There are not much buttons and stuff i will need, one Form will be enough. Therefore i will somehow add a WinForms(File?) or rather change the programm to WinForms.
But how can i do this?
I got the "CppCLR_WinformsProjekt"-App/Template. But somehow i cant add this by ie. Projectname.sln->Add->New Element.. like some did with C#.
Also some did add some Reference but i do not have any to choose there.
Well maybe i am completly barking up the wrong tree. I am really a noob in programming and its not my real profession, but however i should and will add an GUI to this existing program.
Unfortunately, I am not allowed to add any pictures yet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论