仅在应用程序文件夹中具有VC ++ COM dll就足够了吗,或者我还必须添加.cpp和.h文件? [英] Is it enough to have the VC++ COM dll only in the application folder or I have to add the .cpp and .h files also?

查看:75
本文介绍了仅在应用程序文件夹中具有VC ++ COM dll就足够了吗,或者我还必须添加.cpp和.h文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在创建一个vb.net Windows桌面应用程序.在此应用程序中,为了应用GUID,我引用的是VC ++ COM dll.我想问两个澄清.

1)一旦完成了应用程序开发,我想在其他PC上运行vb.net应用程序.仅在应用程序文件夹中具有VC ++ COM dll就足够了吗,或者我还必须添加.cpp和.h文件?

2)通常,在开发Windows应用程序时,我们必须保留dll并在哪个文件夹下进行引用?

您的回答对我很有帮助.

谢谢,
Sivakumar.M.

Hi,

I am creating a vb.net windows desktop application. In this application, in order to apply GUID, I am refering a VC++ COM dll. I would like to ask two clarifications.

1) Once completed the application development, I would like to run the vb.net application in some other PC. Is it enough to have the VC++ COM dll only in the application folder or I have to add the .cpp and .h files also?

2) Generally, while developing an windows application, under which folder we have to keep the dlls and refer?

Your answer will be much helpful for me.

Thanks,
Sivakumar.M.

推荐答案

我假设您正在使用Visual Studio.

创建对要使用的DLL的引用,然后VS将在开发过程中根据需要处理文件的移动.

部署时,放置DLL的最佳位置可能是您的应用程序文件夹.查看库文档,以了解应如何部署它,因为可能需要注册.

您不必包括源文件(* .cpp和* .h)即可使其工作.但是,如果您使用的是第三方库,则许可证可能会坚持要求您这样做.
I am assuming that you are using Visual Studio.

Create a Reference to the DLL you want to use, and then VS will handle moving the file around as required while developing.

When you deploy, the best place to put the DLL is probably your application folder. Check the library documentation to see how it should be deployed, as it may need to be registered.

You don''t have to include the source files (*.cpp and *.h) to make it work. However, if you are using a third-party library, the license may insist that you do so.


这篇关于仅在应用程序文件夹中具有VC ++ COM dll就足够了吗,或者我还必须添加.cpp和.h文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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