<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[eigene c++ lib dll für php]]></title><description><![CDATA[<p>Hallo,<br />
hat von euch schonmal jemand versucht ne lib dll oder sowas für php zu erstellen.<br />
Einfach ne simple funktion die über ausführbar ist z.B.</p>
<pre><code class="language-cpp">#include &lt;stdlib&gt;
#include &quot;string.h&quot;

int main()
{
  printf(&quot;hallo&quot;);
}
</code></pre>
<p>Geht sowas überhaupt?<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/153143/eigene-c-lib-dll-für-php</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 07:28:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/153143.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Jul 2006 10:47:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to eigene c++ lib dll für php on Thu, 13 Jul 2006 10:47:27 GMT]]></title><description><![CDATA[<p>Hallo,<br />
hat von euch schonmal jemand versucht ne lib dll oder sowas für php zu erstellen.<br />
Einfach ne simple funktion die über ausführbar ist z.B.</p>
<pre><code class="language-cpp">#include &lt;stdlib&gt;
#include &quot;string.h&quot;

int main()
{
  printf(&quot;hallo&quot;);
}
</code></pre>
<p>Geht sowas überhaupt?<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1097025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097025</guid><dc:creator><![CDATA[unknown1]]></dc:creator><pubDate>Thu, 13 Jul 2006 10:47:27 GMT</pubDate></item><item><title><![CDATA[Reply to eigene c++ lib dll für php on Thu, 13 Jul 2006 13:10:08 GMT]]></title><description><![CDATA[<p>Na mit int main() wirst du da nicht weit kommen.</p>
<p>Du musst deine Funktionen schon &quot;exportieren&quot; damit du sie benutzen kannst.<br />
Und wenn du PHP mit der dll benutzen willst, musst du dich um die Konvertierung der Datentypen kümmern. Da weiß ich nicht, wie man das in PHP handhabt.</p>
<p>Kleines Gerüst für ne dll:</p>
<pre><code class="language-cpp">// interface.h

_declspec (dllexport) int square(int source);
</code></pre>
<pre><code class="language-cpp">// interface.cpp
#include &quot;interface.h&quot;

_declspec (dllexport) int square(int source)
{
    return source*source;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1097125</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1097125</guid><dc:creator><![CDATA[DarthZiu]]></dc:creator><pubDate>Thu, 13 Jul 2006 13:10:08 GMT</pubDate></item></channel></rss>