在win 32应用程序中使用C#类 [英] Using C# Classes in win 32 application

查看:68
本文介绍了在win 32应用程序中使用C#类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一些旧的win32应用程序,我仍然需要支持这些应用程序。

如果可能的话,我想在C#中进行新的和未来的增强。


有没有办法在普通的Windows 32应用程序中使用.net程序集?


谢谢

Wayne

解决方案

不,由于非托管应用程序中遗漏了无所不能的CLR。


" Wayne" <我****** @ community.nospam>在留言中写道

news:u4 *************** @ tk2msftngp13.phx.gbl ...

我们有一些旧的win32应用程序,我仍然需要支持这些
应用程序。如果可能的话,我想在C#中进行新的和未来的增强。

有没有办法在普通的Windows 32应用程序中使用.net程序集?

谢谢
Wayne



COM-Callable Wrappers怎么样?


" NAL" < NAL @ INVALIDADDRESS>写在消息

新闻:Op ************** @ TK2MSFTNGP09.phx.gbl ...

不,由于非托管应用程序中缺少无所不能的CLR。

Wayne <我****** @ community.nospam>在消息中写道
新闻:u4 *************** @ tk2msftngp13.phx.gbl ...

我们有一些旧的win32应用程序和我仍然需要支持这些


应用程序。

如果可能的话,我想在C#中进行新的和未来的增强。

有没有办法在普通的Windows 32应用程序中使用.net程序集?

谢谢
Wayne


"韦恩" <我****** @ community.nospam>在留言中写道

news:u4 *************** @ tk2msftngp13.phx.gbl ...

有没有办法在普通的Windows 32应用程序中使用.net程序集?




是的 - 所有你必须给它一个COM包装器,然后它可以是可用于实例化COM对象的任何

应用程序。

http://www.15seconds.com/issue/040721.htm


We have some old win32 apps and I still need to support these applications.
I''d like to do new and future enhancements in C#, if at all possible.

Is there a way to use a .net assembly in a normal windows 32 app?

Thanks
Wayne

解决方案

No, due to the omnipotent CLR missing from non managed applications.

"Wayne" <Me******@community.nospam> wrote in message
news:u4***************@tk2msftngp13.phx.gbl...

We have some old win32 apps and I still need to support these applications. I''d like to do new and future enhancements in C#, if at all possible.

Is there a way to use a .net assembly in a normal windows 32 app?

Thanks
Wayne



What about COM-Callable Wrappers?

"nal" <nal@invalidaddress> wrote in message
news:Op**************@TK2MSFTNGP09.phx.gbl...

No, due to the omnipotent CLR missing from non managed applications.

"Wayne" <Me******@community.nospam> wrote in message
news:u4***************@tk2msftngp13.phx.gbl...

We have some old win32 apps and I still need to support these


applications.

I''d like to do new and future enhancements in C#, if at all possible.

Is there a way to use a .net assembly in a normal windows 32 app?

Thanks
Wayne



"Wayne" <Me******@community.nospam> wrote in message
news:u4***************@tk2msftngp13.phx.gbl...

Is there a way to use a .net assembly in a normal windows 32 app?



Yep - all you have to is give it a COM wrapper, then it can be used by any
app which can instantiate a COM object.

http://www.15seconds.com/issue/040721.htm


这篇关于在win 32应用程序中使用C#类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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