I have a C++ program and I want to package it under the tools menu. I made a dll from my program.
My dll gets two input ( pdb name and volum density level ,)
and generate the output. when I save the python codes to execute my dll in the chimera IDLE, every thing works well and my program starts working and generates the output. here is the code that I ran in the IDLE:
import ctypes
dll = ctypes.CDLL('tracer_v2.dll')
dll.calc.argtypes = [ctypes.c_char_p, ctypes.c_double]
dll.calc.restype = ctypes.c_int
print(dll.calc('1733_H',3))
The problem that I faced is that when I add an extension button to the chimera and wants to call my function (calc('1733_H', 3) ) from there, I get an error: