473,396 Members | 1,916 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,396 software developers and data experts.

Is it Possible to call a C# library (dll) from a non managed languagesuch as Perl?

I suspect that this is either not possible or really really tricky,
but need to ask. We have a great deal of work done in perl in our
environment, and we are currently starting to do more work with .Net
and C#. A marriage of the two would be nice. I believe its fairly
straight forward to call unmanaged code from within a C# application,
but calling a created (and managed) C# dll from within a non managed
language (in our case Perl) is a bit more though provoking. So you net
guru's is it possible and if so any good links on how to do it? I read
somewhere that you could use COM, to make the managed library
available but am unsure the steps involved. If that works I believe
Perl can access COM, so that might be a possiblility.
Thanks for any suggestions or help
-SteveM
Dec 7 '07 #1
1 1722
On Dec 7, 11:44 am, SteveM <steve.mo...@philips.comwrote:
I suspect that this is either not possible or really really tricky,
but need to ask. We have a great deal of work done in perl in our
environment, and we are currently starting to do more work with .Net
and C#. A marriage of the two would be nice. I believe its fairly
straight forward to call unmanaged code from within a C# application,
but calling a created (and managed) C# dll from within a non managed
language (in our case Perl) is a bit more though provoking. So you net
guru's is it possible and if so any good links on how to do it? I read
somewhere that you could use COM, to make the managed library
available but am unsure the steps involved. If that works I believe
Perl can access COM, so that might be a possiblility.
Thanks for any suggestions or help
-SteveM
SWIG enables you to do this by defining a class with virtual methods
in C++ and then implementing/overriding those methods in C#. That'll
get you C++ to C#; Perl into C++ shouldn't be too hard ... but it is a
lot of hoops to jump thru (tho still possibly easier than COM).

Dec 7 '07 #2

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

Similar topics

1
by: Fadly Tabrani | last post by:
Hi guys, This is the first time I'm posting to the newsgroup, hope you can help out. I'm writing a module to interface with the task scheduler in windows using PyWin32. Everything has been...
1
by: sunil s via DotNetMonster.com | last post by:
Hi, I've got a native C++ app which calls a 3rd parth .NET DLL using the LoadLibrary/GetProcAddress functions. This works fine when the DLL is located in the app directory, but if I move it out...
0
by: Eugene Safrankow | last post by:
Hello All! I've encountered with the error when I call a method of dependency library (written in managed VC++) from Smart Client placed on a web page. In general, I make a call to the Windows...
2
by: hykim | last post by:
I want to call a unmanaged dll's function returning some STRUCT's pointer. the next is definition of a STRUCT. ----------------------------------------------------------------------- typedef...
2
by: Bret Pehrson | last post by:
I just need to confirm now (after I've spent several days chasing mystery metadata warnings/errors) that this is *NOT* possible: Link a managed C++ static library into a (managed) C# application....
8
by: Paul | last post by:
Hi all may I know how to use C# DLL inside my VC++ Project ? Thanks in advance.
12
by: Ricky | last post by:
Hi I know that we can call C++ code from C# using COM interop, how about do the reverse? Ricky
13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.