将c ++表单项目与c ++控制台项目集成 [英] integrate c++ form project with c++ console project
问题描述
我有两个项目,一个是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屋!