我的dll属于一个项目,我可以在另一个项目中使用它吗? [英] I have dll belongs to one project, can i use it in another project

查看:73
本文介绍了我的dll属于一个项目,我可以在另一个项目中使用它吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用VC ++开发的DLL,它属于Project A,它使用Asp经典语言考虑.

我的问题是

1)我可以为项目B使用相同的DLL吗?

2)如果我想将Project A的前端从Asp经典项目迁移到Asp.net,我可以使用相同的DLL吗?

可行吗?

我想在幕后知道..... !!!

I have a DLL developed using VC++ ,it belongs to Project A which is in Asp classic language consider.

My question is

1) Can i use the same DLL for project B ?

2) If i want to migrate the front end of Project A from Asp classic project to Asp.net can i use the same DLL?

will it be feasible?

I want to know behind the scenes.....!!!

推荐答案

测试场景

我在Visual Basic 6.0中创建了一个示例dll,并使用regsvr命令注册了相同的dll.

注册后,我在ASP经典页面中创建了一个对象,然后调用了该应用程序.该应用程序运行平稳,并返回了预期的输出.

然后,我在Visual Studio 2010中为Visual Basic应用程序创建了一个示例应用程序.我从Visual Studio打来的电话也一样.它工作正常,并返回所需的输出.

然后我创建了一个示例Visual Basic 6.0应用程序,在该应用程序中我为同一dll创建了一个对象,但是在这里我遇到了一个错误.一旦在项目中添加了引用作为引用,它就可以正常工作了

因此可以从多种语言中调用dll.

或多或少它几乎取决于项目和我们使用的语言.
To test the scenario

I created a sample dll in Visual Basic 6.0 and register the same dll using regsvr command.

Once registered i created an object in ASP classic page and i called the application. The application runs smoothly and returns the expected output.

Then i created a sample application in Visual studio 2010 for Visual Basic application. Same i called from visual studio. It works good and returns the desired output.

Then i create a sample Visual basic 6.0 application where i created an object for the same dll, but here i ended up with an error.Once i added as reference in my project it works fine

So it is possible to call dll from many languages.

More or less it almost depends on the project and the language that we are using.


这篇关于我的dll属于一个项目,我可以在另一个项目中使用它吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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