Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HOW TO USE C# GENERATED DLL
#3
Thanks,
I tried to use clr. It does work, but I have a problem when I try to throw a function, the system cannot find to try a type System.ComponentModel.Componet.

>>> res = box.SetSerial('COM5', 10, pcprot.CCB2);
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
System.TypeLoadException: Could not load type 'System.ComponentModel.Component' from assembly 'System.ComponentModel.Primitives, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at WiredBoxLib.SerialPortAdapter.get_PortName()
at WiredBoxLib.WiredBox.SetSerial(String port, Int32 txinterval, PC_PROTOCOL protocol)


Above I reported what my python shell reports
Reply


Messages In This Thread
HOW TO USE C# GENERATED DLL - by davide_vergnani - Jun-09-2023, 12:52 PM
RE: HOW TO USE C# GENERATED DLL - by snippsat - Jun-09-2023, 02:13 PM
RE: HOW TO USE C# GENERATED DLL - by davide_vergnani - Jun-12-2023, 03:35 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020