C-Interface

luigi-s
2020-10-02
2021-05-17
  • luigi-s - 2020-10-02

    Hello everyone,

    I am trying to include an external C compiled library into a CODESYS library.
    I have added a "C Implemented Library" object to the POU view and included a compiled dll with a simple function in it

    Now I was wandering, how do I access the function in the dll?
    My idea was to add a POU (Iface function in the POU tree) that just calls the function inside the loaded dll

    Does this make sense? Is there any place where to add the header file?

    Thanks

     
  • tesla - 2021-05-15

    Hi,

    I get an error during load a DLL file 'the file name should end with library namespace', have you ever see it before?
    and how did you solve it? Could you pls share it?
    

    Thank you in advance!

     
  • luigi-s - 2021-05-17

    Hi,
    Unfortunately I could never manage to use DLLs in my CODESYS projects.
    Also, I've never seen the error you are reporting in your post

    Hope someone more experienced can help you,
    Good luck!

     

Log in to post a comment.