ich versuche gerade in Python meine C# DLL einzubinden leider mit wenig Erfolg...
hat jemand eine andere Idee?
dll:
Code: Alles auswählen
using System;
using System.Collections.Generic;
using System.Text;
namespace umfragetest
{
public class umfragetest
{
public string test()
{
return "Das klappt schon!";
}
}
}
python:
Code: Alles auswählen
import ctypes
from ctypes import cdll
from ctypes import *
xdll = cdll.LoadLibrary('MyDLL.dll')
xdll.umfragetest.test()
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'umfragetest' not found