Hallo
Ich habe folgende COM-DLL in C# geschrieben:
Nun möchte ich die in der DLL enthaltenen Funktionen in C++ aufrufen, habe aber leider keinen blassen Schimmer wie das in C++ geht.
Kann mir jemand helfen?
Ich habe folgende COM-DLL in C# geschrieben:
Code:
using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace CL { [InterfaceTypeAttribute(ComInterfaceType.InterfaceIsDual)] public interface _Mathe { [DispId(1)] int add(int a, int b); [DispId(2)] int sub(int a, int b); [DispId(3)] int mult(int a, int b); } [ClassInterface(ClassInterfaceType.None)] [ProgId("CL.Mathe")] public class Mathe : _Mathe { public Mathe() { } public int add(int a, int b) { return (a + b); } public int sub(int a, int b) { return (a - b); } public int mult(int a, int b) { return (a * b); } } }
Kann mir jemand helfen?
Comment