thank you, IT WORKS, but for some reason only one letter is displayed:
    
    
    import ctypes
    lb = ctypes.cdll.LoadLibrary("./main.dll")
    result = lb.hello("LOL")
    print(result)
    
    
    Run
    
    
    proc hello(slovo: cstring): cstring {.exportc, dynlib.} =
      echo slovo
    
    
    Run
    
    
    python main.py
    L
    
    
    Run

Reply via email to