<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>29 Oct 2019 14:20:11 Z</lastBuildDate><pubDate>29 Oct 2019 09:18:15 Z</pubDate><description>Bonjour,&#13;
&#13;
Cela fait un moment que j'essaie de trouver comment allouer un tableau d'objet .Net défini dans une dll.&#13;
&#13;
Voici un exemple du code de la dll écrite en c++/cli&#13;
&#13;
[code:cpp]&#13;
	public ref class ClassArrayTest&#13;
	{&#13;
	private:&#13;
		int _i;&#13;
	public:&#13;
		ClassArrayTest()&#13;
		{&#13;
			_i = -10;&#13;
			_l = gcnew Collections::Generic::List&lt;int&gt;(100);&#13;
		}&#13;
&#13;
		int GetI()&#13;
		{&#13;
			return _i;&#13;
		}&#13;
&#13;
		void SetI(const int i)&#13;
		{&#13;
			_i = i;&#13;
		}&#13;
	};&#13;
[/code]&#13;
&#13;
Et voici comment le test fait dans Windev&#13;
&#13;
[code:wl]&#13;
tabArrayTest est un tableau dynamique&#13;
tabArrayTest = allouer un tableau dynamique de 10 CLRWindevTest.ClassArrayTest&#13;
&#13;
POUR i= 1 A 10&#13;
	tabArrayTest[i].SetI(i)&#13;
FIN&#13;
[/code]&#13;
&#13;
Toutefois dès l'appel à la première utilisation du setter je reçois le message d'erreur suivant : "L'objet .NET dynamique '' n'est pas alloué."&#13;
&#13;
Merci d'avance à quiconque saura m'aider dans ma quête de l'initialisation d'un tableau d'objets .NET</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net/read.awp</link><title>Initialisation tableau d'objets .NET</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>Esteban BERNARD</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net-234128/read.awp</comments><pubDate>29 Oct 2019 14:20:11 Z</pubDate><description>freak per a écrit : &#13;
&gt; envoies moi un lien où je peux télécharger la dll&#13;
&#13;
Voilà :&#13;
https://wetransfer.com/downloads/3b2d8fdb9…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net-234128/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net-234128/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net/read.awp">Initialisation tableau d'objets .NET</source><title>Re: Initialisation tableau d'objets .NET</title></item><item><author>Kevin</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net-234118/read.awp</comments><pubDate>29 Oct 2019 11:46:12 Z</pubDate><description>envoies moi un lien où je peux télécharger la dll</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net-234118/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net-234118/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/234111-initialisation-tableau-objets-net/read.awp">Initialisation tableau d'objets .NET</source><title>Re: Initialisation tableau d'objets .NET</title></item></channel></rss>
