473,406 Members | 2,371 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

write c# plugin for c++ app

Hello,

how can I write a c# plugin for a c++ application.
The App calls

int __declspec(dllexport)plugin_version(void)
{
}

in a c++ dll.
Is there a way to write a c++.Net dll that exports the required methods, and
calls
the methods in my c# dll?like:

int __declspec(dllexport)plugin_version(void)
{
return MyCSharpDll.PluginVersion();
}
Nov 16 '05 #1
4 3061
Probably the easiest way to do this is to use Managed C++ to form a bridge
between C# and C++.
--
Michael Giagnocavo
MVP
www.atrevido.net
"Dirk Reske" <_F*******@gmx.net> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hello,

how can I write a c# plugin for a c++ application.
The App calls

int __declspec(dllexport)plugin_version(void)
{
}

in a c++ dll.
Is there a way to write a c++.Net dll that exports the required methods,
and calls
the methods in my c# dll?like:

int __declspec(dllexport)plugin_version(void)
{
return MyCSharpDll.PluginVersion();
}

Nov 16 '05 #2
Probably the easiest way to do this is to use Managed C++ to form a bridge
between C# and C++.
--
Michael Giagnocavo
MVP
www.atrevido.net
"Dirk Reske" <_F*******@gmx.net> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hello,

how can I write a c# plugin for a c++ application.
The App calls

int __declspec(dllexport)plugin_version(void)
{
}

in a c++ dll.
Is there a way to write a c++.Net dll that exports the required methods,
and calls
the methods in my c# dll?like:

int __declspec(dllexport)plugin_version(void)
{
return MyCSharpDll.PluginVersion();
}

Nov 16 '05 #3
yes,

but I can't really code in managed c++...
some example for this function

int __declspec(dllexport)plugin_version(void)
{
}

"Michael Giagnocavo [MVP]" <mg*******@atrevido.net> schrieb im Newsbeitrag
news:%2******************@TK2MSFTNGP14.phx.gbl...
Probably the easiest way to do this is to use Managed C++ to form a bridge
between C# and C++.
--
Michael Giagnocavo
MVP
www.atrevido.net
"Dirk Reske" <_F*******@gmx.net> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hello,

how can I write a c# plugin for a c++ application.
The App calls

int __declspec(dllexport)plugin_version(void)
{
}

in a c++ dll.
Is there a way to write a c++.Net dll that exports the required methods,
and calls
the methods in my c# dll?like:

int __declspec(dllexport)plugin_version(void)
{
return MyCSharpDll.PluginVersion();
}


Nov 16 '05 #4
yes,

but I can't really code in managed c++...
some example for this function

int __declspec(dllexport)plugin_version(void)
{
}

"Michael Giagnocavo [MVP]" <mg*******@atrevido.net> schrieb im Newsbeitrag
news:%2******************@TK2MSFTNGP14.phx.gbl...
Probably the easiest way to do this is to use Managed C++ to form a bridge
between C# and C++.
--
Michael Giagnocavo
MVP
www.atrevido.net
"Dirk Reske" <_F*******@gmx.net> wrote in message
news:uc**************@TK2MSFTNGP14.phx.gbl...
Hello,

how can I write a c# plugin for a c++ application.
The App calls

int __declspec(dllexport)plugin_version(void)
{
}

in a c++ dll.
Is there a way to write a c++.Net dll that exports the required methods,
and calls
the methods in my c# dll?like:

int __declspec(dllexport)plugin_version(void)
{
return MyCSharpDll.PluginVersion();
}


Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Tian | last post by:
I am writing an audio game using Python. in this game you can apply some sound effects for the clips you have recorded. I want to make this function extensible. I want user to be able to add new...
0
by: | last post by:
Hi, I want to write a small plugin/script/component (in .NET preferably) for internet explorer that can read information on a web page. More specificly: i want to read the html body of a...
8
by: Zheng Da | last post by:
I don't know where should I ask the question, so send the email to this group. I choose this group, because I want to write the program with c++ :) I want to write a program which support...
2
by: Rudolf | last post by:
Dear NG, I want to create a Plugin System in C# (WinForms). Has anybody experience about this, tips, tricks, or any links. Thank you very much The DotNetJunkie
1
by: Howie (remove _) | last post by:
Hi, there are some ways to write a plugin with C++/.NET. - DLL - COM - .... What do you think is the best (most easiest ?) way to write plugins ?
2
by: Edvard Majakari | last post by:
Hi, My idea is to create a system working as follows: each module knows path to plugin directory, and that directory contains modules which may add hooks to some points in the code. Inspired...
2
by: Ron | last post by:
Hello, I'm attempting to develop a plugin framework for an application that I'm working on. I wish to develop something in which all plugins exist in a directory tree. The framework need only...
2
by: Aravind | last post by:
I have 3rd party dll plugin COM interface, when loaded executes the following functions. public class Test: IPlugin { public void Innitialize(IPluginApp obj, int pluginHandle) { //gets the...
0
by: Shiplu | last post by:
Hi, I think you are familier with plugin system in windows application. I have created and application which has this facility. One is PluginHost, container of the plugin. Other is Plugin itself....
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.