Compiling and using C# class library

Posted on 2006-06-08
Last Modified: 2010-04-16

I have a C# class library (.dll) developed in Visual Studio 2005, and I would like to compile it in a way that it can be called by programs from various environments (i.e. Oracle 9, C/C++ programs not developed in VS.NET, etc.) Is this possible without having to re-write the entire class library?

Question by:james567
    LVL 25

    Assisted Solution

    Sure.  The most universal way would be to create a web service to encapsulate the library.  

    I don't know about Oracle 9, but a more specific way would be to wrap the library in either a CCW (COM Callable Wrapper) or a managed C++ wrapper that accesses the library and could be called from C/C++.  

    Depending on the complexity of your library (specifically the types that you want to expose), it could be fairly difficult.  If you're only dealing with low-level types (ints, strings, etc.) it may not be too difficult.

    LVL 14

    Accepted Solution

    Have a look at:

    It's an example from calling Managed Code from unmanaged C++.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now