Hallo
ich wollte mir das erste mal eine dll erstellen, aber keine ahnung wie
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
thx
haufe
ich wollte mir das erste mal eine dll erstellen, aber keine ahnung wie
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
- ///////////////////////////////////////////////////////////////////////////////////
- // AxComp.cs
- // Creates a simple ActiveX component.
- //
- // 1. Compile into a class library, or use:
- // csc /t:library AxComp.cs
- // 2. Register and generate the Typelib on the client's machine with:
- // regasm AxComp.dll /tlb:AxCompNet.dll /codebase
- /////////////////////////////////////////////////////////////////////////////////// using System;
- using System.Runtime.InteropServices; namespace AxComponent
- {
- public interface IAxTest
- {
- string CallIt();
- } [ClassInterface(ClassInterfaceType.AutoDual)]
- public class AxComp : IAxTest
- {
- public string CallIt()
- {
- return "This is a test.";
- }
- }
- }
thx
haufe
ähh? wasn das