<?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[array an DLL übergeben]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe da mal eine Frage und hoffe, dass mir jemand helfen kann.</p>
<p><strong>Vorhaben:</strong><br />
Ich übergebe die Adresse des ersten Elements eines integer Arrays an eine Funktion in meiner DLL.<br />
<em>Ich weiß also die erste adresse des Arrays.</em></p>
<p><strong>Wie kann ich jetzt aber den 2. 3. ... Wert des Arrays an die darauf folgenden Adressen schreiben?</strong></p>
<p>Steige da irgendwie nicht durch.</p>
<p>Hier noch ein Paar Codezeilen:</p>
<pre><code>[b]int* mac[/b]
</code></pre>
<p>Ist die Adresse des ersten Elements eines Arrays.</p>
<p>Das Array lege ich in VB an und übergebe dann als ByRef den ersten Wert.</p>
<pre><code>int _stdcall Test(char* ip, int* test, [b]int* mac[/b])
{
	initialize b1;
	b1.test(ip);

*test=b1.iAdapternr ;

[b]*mac=b1.myIP[0];[/b]
return 5;

}
</code></pre>
<p>Ich hoffe, dass das nicht allzu verwirrend war.<br />
Freue mich über jede Info, Anregung..</p>
<p>Gruß und vielen Dank im voraus<br />
Tupo13</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/127525/array-an-dll-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Tue, 25 Aug 2026 04:30:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/127525.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 25 Nov 2005 08:02:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 08:02:55 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe da mal eine Frage und hoffe, dass mir jemand helfen kann.</p>
<p><strong>Vorhaben:</strong><br />
Ich übergebe die Adresse des ersten Elements eines integer Arrays an eine Funktion in meiner DLL.<br />
<em>Ich weiß also die erste adresse des Arrays.</em></p>
<p><strong>Wie kann ich jetzt aber den 2. 3. ... Wert des Arrays an die darauf folgenden Adressen schreiben?</strong></p>
<p>Steige da irgendwie nicht durch.</p>
<p>Hier noch ein Paar Codezeilen:</p>
<pre><code>[b]int* mac[/b]
</code></pre>
<p>Ist die Adresse des ersten Elements eines Arrays.</p>
<p>Das Array lege ich in VB an und übergebe dann als ByRef den ersten Wert.</p>
<pre><code>int _stdcall Test(char* ip, int* test, [b]int* mac[/b])
{
	initialize b1;
	b1.test(ip);

*test=b1.iAdapternr ;

[b]*mac=b1.myIP[0];[/b]
return 5;

}
</code></pre>
<p>Ich hoffe, dass das nicht allzu verwirrend war.<br />
Freue mich über jede Info, Anregung..</p>
<p>Gruß und vielen Dank im voraus<br />
Tupo13</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926671</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926671</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 08:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 08:05:28 GMT]]></title><description><![CDATA[<p>Kleiner Tipp: *mac ist das gleiche wie mac[0].</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926672</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 25 Nov 2005 08:05:28 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 08:17:24 GMT]]></title><description><![CDATA[<p>Ein C++ Array is nix anderes als ein Pointer auf das erste Element. Mit anderen Worten du kannst jeden Pointer so behandeln als wäre er ein Array.<br />
Das einzig gemeine ander Sache ist, dass C++ nicht weiß wie lange das Array ist. Du musst also selbst sicherstellen, dass du nicht auf anders belegten Speicher zugreifst... Daher ist es immer sinnvoll die Größe des übergebenen Arrays als Parameter mitzugeben, oder aber Containerklassen zu verwenden.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/926686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926686</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 08:17:24 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 08:42:03 GMT]]></title><description><![CDATA[<p>@ MFK<br />
@ Mathias<br />
Danke für eure Antwort<br />
habe es jetzt so versucht,</p>
<p>es stimmt aber nur der erste wert?<br />
<strong>Weiß jemand was ich falsch mache?</strong></p>
<pre><code>int _stdcall Test(char* ip, int* test, int mac[3])
{

	initialize b1;
	b1.test(ip);

*test=b1.iAdapternr;

mac[0]=b1.myIP[0];
mac[1]=b1.myIP[1];
mac[2]=b1.myIP[2];
mac[3]=b1.myIP[3];

return 5;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/926690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926690</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 08:42:03 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 08:52:17 GMT]]></title><description><![CDATA[<p>Wenn du ein Array aus 3 Elementen übergibst und nachher auf 4 Elemente zugreifst hast du glaube ich was falsch gemacht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f576.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--sunglasses"
      title=":sunglasses:"
      alt="🕶"
    /></p>
<p>Abgesehen davon, dass du das Array per Value übergibst und nicht per Referenz.<br />
Brrr...</p>
<p>initialize ist außerdem kein schöner Klassenname. (Initialisieren ist auf Deutsch ein TUN-Wort, ein Objekt tut aber nix, das blockiert nur Speicher. Etwas tun machen nur (Member)-Funktionen (tun z.B. Objekte initialisieren). Daher kanns eigentlich keine Klasse Initialize geben, genaus wenig wie z.B. eine Funktion Haus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926727</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926727</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 08:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:04:26 GMT]]></title><description><![CDATA[<p>@ Danke Mathias</p>
<blockquote>
<p>Wenn du ein Array aus 3 Elementen übergibst und nachher auf 4 Elemente zugreifst hast du glaube ich was falsch gemacht.</p>
</blockquote>
<p>Ja, das sieht nicht gut aus macht aber keinen Fehler - da ja nicht auf die Länge geprüft wird.</p>
<p>Das mit der Namensgebung habe ich noch nicht so richtig raus,<br />
Weiß jemand ob es irgendwo einen Übereinkunft für die Namen gibt?<br />
Ich meine jetzt Klein-Groß Schreibung, Integer immer mit kleinem i beginnen...</p>
<pre><code>int _stdcall Test(char* ip, int* test, int* mac[])
{

	initialize b1;
	b1.test(ip);

*test=b1.iAdapternr;

*mac[0]=b1.myIP[0];
*mac[1]=b1.myIP[1];
*mac[2]=b1.myIP[2];
*mac[3]=b1.myIP[3];

return 5;

}
</code></pre>
<p>Auf alle Fälle Danke an alle</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926739</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:08:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/10111">@Mathias</a>: Was gibt das folgende Programm aus?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

void foo(int bar[0])
{
	bar[1] = 4711;
}

int main()
{
	int foobar[] = {23, 54};
	foo(foobar);
	cout &lt;&lt; foobar[1] &lt;&lt; endl;
    cin.get();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/926742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926742</guid><dc:creator><![CDATA[schorsch code]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:08:12 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:09:15 GMT]]></title><description><![CDATA[<p>Tupo13 schrieb:</p>
<blockquote>
<p>Das mit der Namensgebung habe ich noch nicht so richtig raus,<br />
Weiß jemand ob es irgendwo einen Übereinkunft für die Namen gibt?<br />
Ich meine jetzt Klein-Groß Schreibung, Integer immer mit kleinem i beginnen...</p>
</blockquote>
<p>In C++ nicht. Es gibt verschiedene Notation, z.B. die ungarische von Microsoft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926744</guid><dc:creator><![CDATA[Pellaeon]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:09:15 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:09:54 GMT]]></title><description><![CDATA[<p>Mathias schrieb:</p>
<blockquote>
<p>Abgesehen davon, dass du das Array per Value übergibst und nicht per Referenz.</p>
</blockquote>
<p>Arrays werden immer by reference übergeben.</p>
<p>Tupo13 schrieb:</p>
<blockquote>
<p>Das mit der Namensgebung habe ich noch nicht so richtig raus,<br />
Weiß jemand ob es irgendwo einen Übereinkunft für die Namen gibt? Ich meine jetzt Klein-Groß Schreibung, Integer immer mit kleinem i beginnen...</p>
</blockquote>
<p>Solche Konventionen sind mehr oder weniger willkürlich, da gibt es viele unterschiedliche Ansichten. Aber darum geht's hier gar nicht. Du hast eine Klasse, die den Namen einer Tätigkeit hat. Das ist vom Design her fragwürdig, weil Klassen eher Dinge repräsentieren, keine Tätigkeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926747</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:09:54 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:24:39 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2803">@MFK</a><br />
@schorsch code<br />
Danke für die Korrektur. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Ich arbeite so häufig mit Arrays, dass ich das schon wieder vergessen hatte. Mit Arrays zu hantieren ist ziemlich unschön (deshalb mach ich das auch so extrem häufig), da dass Wissen über die Größe der Arrays nur der Programmierer kennt oder sie weitergereicht werden muss. Das ist extremst gefährlich....<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<p>Nicht umsonst hat MS bei ihrem neuen Compiler alle Funktionen, die auf Arrays arbeiten um Parameter für die Größe erweitert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926762</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926762</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:24:39 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:35:15 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich bins nochmal und zwar funktioniert das ganze leider immer noch nicht.</p>
<p>es Stimmt immer nur der Wert, den ich auf die erste Adresse schreibe.<br />
Also auf mac[0], die Werte die ich auf mac[1],mac[2]... schreibe kommen nicht an</p>
<p>Weiß jemand warum?</p>
<pre><code>int _stdcall Test(char* ip, int* test, int mac[])
{

	initialize b1;
	b1.test(ip);

mac[0]=b1.myIP[0];
mac[1]=b1.myIP[1];
mac[2]=b1.myIP[2];

*test=b1.iAdapternr;

return 5;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/926771</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926771</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:35:15 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:43:45 GMT]]></title><description><![CDATA[<p>Tupo13 schrieb:</p>
<blockquote>
<p>int mac[]</p>
</blockquote>
<p>Das geht nicht. Gib entweder die Größe an, oder benutz einen Zeiger.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926777</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:43:45 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:48:50 GMT]]></title><description><![CDATA[<p>Benutze Zeiger (da man sich sowieso nicht auf die Größenangabe verlassen kann)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926780</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926780</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:48:50 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:50:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2803">@MFK</a>: Was gibt das folgende Programm aus?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int foo(int bar[])
{
	bar[0] = 4711;
}

int main()
{
	int foobar;
	foo(&amp;foobar);
	cout &lt;&lt; foobar &lt;&lt; endl;
	cin.get();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/926785</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926785</guid><dc:creator><![CDATA[schorsch code]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:50:45 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 09:54:21 GMT]]></title><description><![CDATA[<p>ich meinte</p>
<pre><code class="language-cpp">void foo(int bar[])
{
    bar[0] = 4711;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/926789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926789</guid><dc:creator><![CDATA[schorsch code]]></dc:creator><pubDate>Fri, 25 Nov 2005 09:54:21 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:01:04 GMT]]></title><description><![CDATA[<p>@ all Danke für eure geduld</p>
<p>Ich habe jetzt diese Arten versucht</p>
<p>mac[], mac[3], *mac<br />
Aber bei allen stimmt immer nur das aller erste Element.<br />
Wenn ich in VB das Array dann Ausgebe stimmt immer nur das erste Element<br />
mac_vb[0] alle Weiteren sind 0</p>
<p>Woran kann das liegen?</p>
<p>Danke nochmal für eure Mühen<br />
Gruß Tupo13</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926795</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:06:02 GMT]]></title><description><![CDATA[<p>Was kommt denn raus, wenn du das Array in C/C++ ausgibst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926798</guid><dc:creator><![CDATA[Spezi L]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:06:02 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:07:00 GMT]]></title><description><![CDATA[<p>Warte mal....<br />
du hast auf der einen Seite ein Visual Basic Array und auf der anderen Seite arbeitest du mit einem C++ Array?<br />
Da hab ich doch den stillen Verdacht, dass VB Array nicht gleich C++-Array ist.<br />
Sprich a[1] in VB wo anders hinzeigt wie a[1] in C++.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926801</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:13:07 GMT]]></title><description><![CDATA[<p>schorsch code schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/2803">@MFK</a>: Was gibt das folgende Programm aus?</p>
</blockquote>
<p>Was soll das Ratespiel? Ist dir klar, dass man diese Funktion nur mit einem Zeiger auf int aufrufen kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926808</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926808</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:13:07 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:26:29 GMT]]></title><description><![CDATA[<p>Wieso Ratespiel? Das war eine rethorische Frage.</p>
<p>MFK schrieb:</p>
<blockquote>
<p>Tupo13 schrieb:</p>
<blockquote>
<p>int mac[]</p>
</blockquote>
<p>Das geht nicht.</p>
</blockquote>
<p>Das geht nämlich als Parameter genauso wie</p>
<pre><code class="language-cpp">int *mac
</code></pre>
<p>oder aber</p>
<pre><code class="language-cpp">int mac[0]
</code></pre>
<p>oder aber</p>
<pre><code class="language-cpp">int mac[4711]
</code></pre>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

void foo1(int *bar)
{
    bar[0] = 4711;
}
void foo2(int bar[])
{
    bar[0] = 4712;
}
void foo3(int bar[0])
{
    bar[0] = 4713;
}
void foo4(int bar[4711])
{
    bar[0] = 4714;
}

int main()
{
    int foobar;
    int foobars[1];

    foo1(&amp;foobar);
    foo1(foobars);
    cout &lt;&lt; foobar &lt;&lt; endl;
    cout &lt;&lt; foobars[0] &lt;&lt; endl;

    foo2(&amp;foobar);
    foo2(foobars);
    cout &lt;&lt; foobar &lt;&lt; endl;
    cout &lt;&lt; foobars[0] &lt;&lt; endl;

    foo3(&amp;foobar);
    foo3(foobars);
    cout &lt;&lt; foobar &lt;&lt; endl;
    cout &lt;&lt; foobars[0] &lt;&lt; endl;

    foo4(&amp;foobar);
    foo4(foobars);
    cout &lt;&lt; foobar &lt;&lt; endl;
    cout &lt;&lt; foobars[0] &lt;&lt; endl;

    cin.get();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/926817</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926817</guid><dc:creator><![CDATA[schorsch code]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:26:29 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:38:43 GMT]]></title><description><![CDATA[<p>@ Spezi L<br />
Wenn ich Debugge schreibt er die richtigen Werte in das mac Array</p>
<p>@ Mathias<br />
Du meinst also, dass ein Int in C++ nicht gleich Lang wie ein Int in VB ist?<br />
Oder wie meinst du das?<br />
Der erste Wert des Feldes stimmt ja und wenn ich das mit Einzelwerten int,long... mache funktioniert es ja auch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926826</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926826</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:38:43 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:48:38 GMT]]></title><description><![CDATA[<p>Ob int's die selbe Größe haben, weiß ich nicht - aber offenbar ist ein VB-Array anders aufgebaut als ein C-Array.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926836</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926836</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:48:38 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:50:13 GMT]]></title><description><![CDATA[<p>Nein, was ich meinte ist das ein C++ Array nichts anderes ist als x Variablen des angegebenen Typs hintereinander aufgereiht (z.B. x mal int).<br />
Dies muss in VB nicht unbedingt so sein, da kann z.B. zu jedem Eintrag zusätzliche Informationen hinter dem Eintrag abgelegt sein. Dann sind die Adressen der dem ersten Eintrag folgenden Einträge nicht identisch. (VB fragt den Wert somit an einer anderen Stelle ab als ihn C++ hingeschrieben hat.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926838</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:50:13 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:53:57 GMT]]></title><description><![CDATA[<p>Ein VB Integer hat 2 Bytes. In VB sind Arrays eh ein wenig anders, Index beginnt bei 1, UBOUND liefert den höchsten Index zurück, und es ist auch erlaubt Arrays mit 0 Elementen anzulegen und mit ReDim größer zu machen. Wie sie im Speicher liegen, weiß wahrscheinlich nur MS selbst...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926844</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926844</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 10:56:30 GMT]]></title><description><![CDATA[<p>Damit wäre es klar. Is nix mit direkt Array übergeben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926847</guid><dc:creator><![CDATA[Mathias]]></dc:creator><pubDate>Fri, 25 Nov 2005 10:56:30 GMT</pubDate></item><item><title><![CDATA[Reply to array an DLL übergeben on Fri, 25 Nov 2005 11:11:04 GMT]]></title><description><![CDATA[<p><strong>@all Danke euch allen</strong></p>
<p>Jetzt ist mir einiges klarer.</p>
<blockquote>
<p>Damit wäre es klar. Is nix mit direkt Array übergeben...</p>
</blockquote>
<p>Ich weiß aber, aus einem VB-Beispielprogramm dass es so geht. Allerdings wurde dort der Datentyp Byte verwendet. -&gt; Ich weiß aber nicht, wie der C++-Code dazu aussieht. Byte wäre in C++ wahrscheinlich unsigned char nehme ich an.</p>
<p>Gruß Tupo13</p>
]]></description><link>https://www.c-plusplus.net/forum/post/926858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/926858</guid><dc:creator><![CDATA[Tupo13]]></dc:creator><pubDate>Fri, 25 Nov 2005 11:11:04 GMT</pubDate></item></channel></rss>