<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to C-Interface</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3915dd4fb/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3915dd4fb/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/b3915dd4fb/</id><updated>2021-05-17T06:27:34.678000Z</updated><subtitle>Recent posts to C-Interface</subtitle><entry><title>C-Interface</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3915dd4fb/?limit=25#d026" rel="alternate"/><published>2021-05-17T06:27:34.678000Z</published><updated>2021-05-17T06:27:34.678000Z</updated><author><name>luigi-s</name><uri>https://forge.codesys.com/u/luigi-s/</uri></author><id>https://forge.codesys.com4b807738bcc773257ebc67a9fd7b603e171970a4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
Unfortunately I could never manage to use DLLs in my CODESYS projects.&lt;br/&gt;
Also, I've never seen the error you are reporting in your post&lt;/p&gt;
&lt;p&gt;Hope someone more experienced can help you,&lt;br/&gt;
Good luck!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>C-Interface</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3915dd4fb/?limit=25#93de" rel="alternate"/><published>2021-05-15T11:22:03.424000Z</published><updated>2021-05-15T11:22:03.424000Z</updated><author><name>tesla</name><uri>https://forge.codesys.com/u/tesla/</uri></author><id>https://forge.codesys.comb604b7acae346242c2cc2fa2ef32725fd1ae8618</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="nv"&gt;I&lt;/span&gt; &lt;span class="nv"&gt;get&lt;/span&gt; &lt;span class="nv"&gt;an&lt;/span&gt; &lt;span class="nv"&gt;error&lt;/span&gt; &lt;span class="nv"&gt;during&lt;/span&gt; &lt;span class="nv"&gt;load&lt;/span&gt; &lt;span class="nv"&gt;a&lt;/span&gt; &lt;span class="nv"&gt;DLL&lt;/span&gt; &lt;span class="nv"&gt;file&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;the file name should end with library namespace&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;, &lt;span class="nv"&gt;have&lt;/span&gt; &lt;span class="nv"&gt;you&lt;/span&gt; &lt;span class="nv"&gt;ever&lt;/span&gt; &lt;span class="nv"&gt;see&lt;/span&gt; &lt;span class="nv"&gt;it&lt;/span&gt; &lt;span class="nv"&gt;before&lt;/span&gt;?
&lt;span class="nv"&gt;and&lt;/span&gt; &lt;span class="nv"&gt;how&lt;/span&gt; &lt;span class="nv"&gt;did&lt;/span&gt; &lt;span class="nv"&gt;you&lt;/span&gt; &lt;span class="nv"&gt;solve&lt;/span&gt; &lt;span class="nv"&gt;it&lt;/span&gt;? &lt;span class="nv"&gt;Could&lt;/span&gt; &lt;span class="nv"&gt;you&lt;/span&gt; &lt;span class="nv"&gt;pls&lt;/span&gt; &lt;span class="nv"&gt;share&lt;/span&gt; &lt;span class="nv"&gt;it&lt;/span&gt;?
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Thank you in advance!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>C-Interface</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/b3915dd4fb/?limit=25#3c1b" rel="alternate"/><published>2020-10-02T06:42:54.753000Z</published><updated>2020-10-02T06:42:54.753000Z</updated><author><name>luigi-s</name><uri>https://forge.codesys.com/u/luigi-s/</uri></author><id>https://forge.codesys.comd1018080b2e17f3ab3b2364b8d92a5588823597f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everyone,&lt;/p&gt;
&lt;p&gt;I am trying to include an external C compiled library into a CODESYS library.&lt;br/&gt;
I have added a "C Implemented Library" object to the POU view and included a compiled dll with a simple function in it&lt;/p&gt;
&lt;p&gt;&lt;img src="./attachment/attachment.png" width="50%"/&gt;&lt;/p&gt;
&lt;p&gt;Now I was wandering, how do I access the function in the dll?&lt;br/&gt;
My idea was to add a POU (Iface function in the POU tree) that just calls the function inside the loaded dll&lt;/p&gt;
&lt;p&gt;Does this make sense? Is there any place where to add the header file?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>