473,385 Members | 1,337 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,385 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 3059
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.