问题描述
我有一个允许第三方功能扩展的应用程序
DLL'。用于构建这些DLL的所有规范都是针对c ++的,包含extern的
demo.h文件。声明等
但是不知道c ++我宁愿使用C#。你能否指点一下
关于如何正确使用这个c ++信息的文档/信息
构建我的C#例程以正确连接?
谢谢你的帮助!!
问候,
Raj
Hi,
I have an application that allows functionality extension by third party
DLL''s. All the specs for building these DLL''s are targeted to c++, with
demo.h files containing "extern" statements, etc.
However not really knowing c++ I would rather use C#. Could you point me to
documentation/information on how to use this c++ information to properly
construct my C# routine to connect properly?
Thank-you for your help!!
Regards,
Raj
推荐答案
这些DLL的.NET程序集或Win32 DLL是什么?
Arne
Are those DLL''s .NET assemblies or Win32 DLL''s ?
Arne
赔率相当不错,除非应用程序希望你提供
扩展名作为COM DLL,否则你将无法使用C#构建一个
扩展 - 至少,首先使用托管C ++(或C ++ / CLI,如果你使用VS 2005,是否需要使用VS 2005)来构建一个垫片。 DLL,使您的C#类适应程序所需的基于C的界面。
如果您可以提供一些函数签名类型的示例
应用程序希望你的扩展DLL公开,有人可以
给你更具体的帮助,如何继续。
-cd
Odds are reasonably good that unless the application expects you to provide
extensions as COM DLLs then you won''t be able to use C# to build an
extension - at least, not without first using managed C++ (or C++/CLI if
you''re using VS 2005) to build a "shim" DLL that adapts your C# class to the
C-based interface that the program requires.
If you can give some examples of the types of function signatures that the
application expects your extension DLL to expose, someone will be able to
give you more specific help on how to proceed.
-cd
赔率相当不错,除非应用程序希望你提供
扩展作为COM DLL,否则你将无法使用C#构建一个
扩展 - 至少,并非没有首先使用托管C ++(或C ++ / CLI,如果你使用VS 2005的
)来构建一个垫片 DLL,使您的C#类适应程序所需的基于C的界面。
如果您可以提供一些函数签名类型的示例
应用程序希望你的扩展DLL公开,有人可以
给你更具体的帮助,如何继续。
-cd
Odds are reasonably good that unless the application expects you to provide
extensions as COM DLLs then you won''t be able to use C# to build an
extension - at least, not without first using managed C++ (or C++/CLI if
you''re using VS 2005) to build a "shim" DLL that adapts your C# class to the
C-based interface that the program requires.
If you can give some examples of the types of function signatures that the
application expects your extension DLL to expose, someone will be able to
give you more specific help on how to proceed.
-cd
这篇关于为想要调用c ++的应用程序构建C#dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!