C#Dll问题 [英] C# Dll Question

查看:71
本文介绍了C#Dll问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道C#不会生成可以从其他

应用程序开发平台调用的dll。所以现在我必须找到另一种方式来支付
编写一个可以在另一个环境中使用的客户端应用程序,并且考虑到COM是
。任何人都可以指点我的教程或建议我

开始。我有一个安全组件用来作为一个dll,我想要尝试用C#重写作为测试来证明我们是否可以启动

来利用C#我们的一些解决方案。


任何人都可以帮助我吗?


谢谢,


glenn

解决方案

" glenn" < GH ****** @ softeksoftware.com>在消息中写道

news:u1 ************** @ TK2MSFTNGP10.phx.gbl ...

我明白C#的确如此不生成可以从其他应用程序开发平台调用的dll。


嗯? 应用程序开发平台究竟是什么意思?如果你用b $ b表示其他语言,那么所有.NET语言都可以无缝地与C#

互操作。如果你指的是COM应用程序之类的东西,那么C#可以暴露COM

接口(查找ComVisible)。如果您的意思是其他操作系统,那么C#

可以公开Web服务。

所以现在我必须找到另一种方法来编写可以使用的客户端应用程序在另一个环境中,我正在思考COM。任何人都可以指点我的教程或建议我
在哪里开始。我有一个安全组件,我想要尝试用C#重写,作为测试来证明我们是否可以开始使用C#来解决我们的一些解决方案。

任何人都可以帮助我吗?

谢谢,
glenn



< blockquote>任何用任何语言编写的托管模块都可以使用你的

组件(使用C#或其他)。如果您要求在非托管环境中使用托管的

组件,请阅读MSDN中的以下内容:

http://msdn.microsoft.com/library/de .. .alitytocom.asp


--------

Ajay Kalra
aj ******* @ yahoo.com


嗯,过去10年我们一直在使用Borland Delphi。我们现在正在考虑将我们的应用程序转换为C#和我的

工作的可能性,看看是否可以做到这一点。为了试图证明我的情况,我想把我们在delphi中的一些dll重写成C#

因为它们可以被重写和替换明天,没有人会更聪明。但是,当我尝试在c#中开发一个dll然后从delphi应用程序调用

dll时,当Delphi尝试加载

dll时,我会遇到访问冲突。早在实际调用任何函数之前很久。


到目前为止,我无法找到任何帮助我的内容,因为所有示例

都介于c#和c#之间甚至没有提到可能存在其他程序语言的




谢谢,


glenn

" Ajay Kalra" < AJ ******* @ yahoo.com>在消息中写道

news:11 ********************* @ g14g2000cwa.googlegro ups.com ...

任何用任何语言编写的托管模块都可以使用你的
组件(使用C#或其他)。如果您要求在非托管环境中使用托管的
组件,请阅读MSDN中的以下内容:

http://msdn.microsoft.com/library/de...alitytocom.asp
--------
Ajay Kalra
aj ** *****@yahoo.com



I understand that C# does not generate dll''s that can be called from other
application development platforms. So now I have to find another way to
write a client app that can be utilized within another environment and am
thinking about COM. Can anyone point me to a tutorial or advise me on where
to get started. I have a security component that use to be a dll that I
want to try rewriting in C# as a test to prove whether or not we can start
to utilize C# for some of our solutions.

Can anyone help me?

Thanks,

glenn

解决方案

"glenn" <gh******@softeksoftware.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...

I understand that C# does not generate dll''s that can be called from other
application development platforms.
Huh? What exactly do you mean by "application development platforms"? If you
mean other languages, well all the .NET languages can interoperate with C#
seamlessly. If you mean things like COM applications, then C# can expose COM
interfaces (look up ComVisible). If you mean other operating systems then C#
can expose Web Services.
So now I have to find another way to
write a client app that can be utilized within another environment and am
thinking about COM. Can anyone point me to a tutorial or advise me on
where
to get started. I have a security component that use to be a dll that I
want to try rewriting in C# as a test to prove whether or not we can start
to utilize C# for some of our solutions.

Can anyone help me?

Thanks,

glenn



Any managed module written in any language will be able to use your
component (using C# or whatever). If you are asking to use a managed
component in an unmanaged envioronment, read the following in MSDN:

http://msdn.microsoft.com/library/de...alitytocom.asp

--------
Ajay Kalra
aj*******@yahoo.com


Well, we have been using Borland Delphi for the last 10 years. We are now
looking at the possibility of converting our application to C# and its my
job to see if this is something that can be done. In order to try to prove
my case, I wanted to rewrite a few of the dll''s we have in delphi into C#
because they could be rewritten and replaced tomorrow and no one would be
the wiser. However, when I try to develop a dll in c# and then call that
dll from a delphi app, I get access violations when Delphi tries loading the
dll. Long before any functions are actually called.

I can find absolutely nothing so far to help me with this as all examples
have been between c# and c# with not even a mention that there might be
other program languages that exist.

Thanks,

glenn
"Ajay Kalra" <aj*******@yahoo.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...

Any managed module written in any language will be able to use your
component (using C# or whatever). If you are asking to use a managed
component in an unmanaged envioronment, read the following in MSDN:

http://msdn.microsoft.com/library/de...alitytocom.asp
--------
Ajay Kalra
aj*******@yahoo.com



这篇关于C#Dll问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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