将c ++表单项目与c ++控制台项目集成 [英] integrate c++ form project with c++ console project

查看:76
本文介绍了将c ++表单项目与c ++控制台项目集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个项目,一个是c ++表单项目和一个c ++控制台项目,它包含用于创建表单的函数。我发现难以集成项目和编译。任何人都可以建议我该怎么做。


谢谢

解决方案

我认为其中一个简单的解决方案是将Console应用程序的某些部分放在单独的源文件中,然后将这些文件添加到Console和Form项目中。


其他解决方案:使用静态库,使用动态库,或者在C ++ / CLR的情况下使用类库。


I have two projects one is a c++ form project and a c++ console project that contain function to be used for the form created. I am finding difficulty in integrate both the project and compile. can anyone suggest me how to do.

thank you

解决方案

I think that one of the simple solutions is to put some parts of your Console application in separate source file(s), then add these files to Console and Form projects.

Other solutions: using a static library, using a dynamic library, or using a Class Library in case of C++/CLR.


这篇关于将c ++表单项目与c ++控制台项目集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆