Dll erstellen mit Visual Studio 2008

  • Allgemein

    Dll erstellen mit Visual Studio 2008

    Hallo
    ich wollte mir das erste mal eine dll erstellen, aber keine ahnung wie :D
    die dll möchte ich über meine page abfragen
    der code ist c#
    er hat da auch eine anleitung dabei mit der ich nicht klar komme

    Quellcode

    1. ///////////////////////////////////////////////////////////////////////////////////
    2. // AxComp.cs
    3. // Creates a simple ActiveX component.
    4. //
    5. // 1. Compile into a class library, or use:
    6. // csc /t:library AxComp.cs
    7. // 2. Register and generate the Typelib on the client's machine with:
    8. // regasm AxComp.dll /tlb:AxCompNet.dll /codebase
    9. /////////////////////////////////////////////////////////////////////////////////// using System;
    10. using System.Runtime.InteropServices; namespace AxComponent
    11. {
    12. public interface IAxTest
    13. {
    14. string CallIt();
    15. } [ClassInterface(ClassInterfaceType.AutoDual)]
    16. public class AxComp : IAxTest
    17. {
    18. public string CallIt()
    19. {
    20. return "This is a test.";
    21. }
    22. }
    23. }

    thx
    haufe
    ähh? wasn das :)