<feed version="0.3" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://purl.org/atom/ns#" xml:lang="fr-FR"><title>Patrice 's Blog</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/default.aspx" /><tagline type="text/html" /><id>http://forums.labo-dotnet.com/blogs/patrice/default.aspx</id><author><url>http://forums.labo-dotnet.com/blogs/patrice/default.aspx</url></author><generator url="http://communityserver.org" version="1.1.0.50615">Community Server</generator><modified>2004-11-19T14:57:00Z</modified><entry><title>Changement d'adresse de mon blog...</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2005/03/14/18218.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:18218</id><created>2005-03-14T09:53:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Tout est dans le titre, ce blog change d'adresse et est donc dorénavant disponible via &lt;a href="http://blogs.labo-dotnet.com/blogs/patrice"&gt;http://blogs.labo-dotnet.com/blogs/patrice&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Je suis rentré de Chine hier soir et grosse surprise, je me rends compte que tout a été migré sur Community Server et que donc ma skin a disparu mais surtout que l'url du blog a changé... :(&lt;/P&gt;
&lt;P&gt;Je vais donc essayer cette nouvelle version avant de décider si mon blog déménage vers un nom de domaine perso que je maitriserai totalement.&lt;/P&gt;
&lt;P&gt;Merci de mettre à jours vos feeds si vous souhaitez continuer à me lire.&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=18218" width="1" height="1"&gt;</content><slash:comments>1</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=18218</wfw:commentRss></entry><entry><title>Bientot en Chine...</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2005/02/24/18143.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:18143</id><created>2005-02-24T21:26:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Apr&amp;#232;s avoir pass&amp;#233; 15 jours d&amp;#233;but Janvier &amp;#224; SUPINFO Oc&amp;#233;an Indien (&amp;#238;le de la r&amp;#233;union) (pour ceux qui le veulent, &lt;A href="http://blogs.labo-dotnet.com/patrice/images/Photo%2082.jpg" target=_blank&gt;quelques&lt;/A&gt; &lt;A href="http://blogs.labo-dotnet.com/patrice/images/Photo%20088.jpg" target=_blank&gt;photos&lt;/A&gt; &lt;A href="http://blogs.labo-dotnet.com/patrice/images/Photo%20067.jpg" target=_blank&gt;de&lt;/A&gt; &lt;A href="http://blogs.labo-dotnet.com/patrice/images/Photo%20085.jpg" target=_blank&gt;la&lt;/A&gt; &lt;A href="http://blogs.labo-dotnet.com/patrice/images/Photo%20058.jpg" target=_blank&gt;r&amp;#233;union&lt;/A&gt;) :&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG height=384 src="/patrice/images/supinforeunion.png" width=512 border=0&gt;&lt;/P&gt;
&lt;P align=center&gt;(Sympa comme cadre de travail non ? :))&lt;/P&gt;
&lt;P align=left&gt;Je m'envole demain soir en Chine &amp;#224; 1h30 de voiture de P&amp;#233;kin pour donner des cours &amp;#224; l'universit&amp;#233; de Hebut. Vous aurez donc droit &amp;#224; quelques photos de Chine dans les jours qui viennent. (je m'excuse d'avance de la pollution pour ceux qui&amp;nbsp; n'aiment pas ce genre de post...)&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=18143" width="1" height="1"&gt;</content><slash:comments>1</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=18143</wfw:commentRss></entry><entry><title>ASP.net 2 : Passer de la beta 1 à la beta 2</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2005/02/12/18102.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:18102</id><created>2005-02-12T17:58:00Z</created><content type="text/html" mode="escaped">&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;IMG height=60 src="/patrice/images/secondASP.NET.jpg" width=80 border=0&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT size=2&gt;Si vous d&amp;#233;veloppez d&amp;#233;j&amp;#224; avec Whidbey et que vous souhaitez pr&amp;#233;parer vos projets ASP.net &amp;#224; la beta 2 qui sortira en Mars-Avril vous pouvez &lt;A href="http://msdn.microsoft.com/asp.net/whidbey/beta2update.aspx" target=_blank&gt;consulter cette page &lt;/A&gt;qui liste les principales diff&amp;#233;rences qu'il faut prendre en compte pour rendre ses pages compatibles.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Ayant un projet ASP.net 2 (un projet un peu "proof of concept" o&amp;#249; je refond un site existant en ASP&amp;nbsp;avec l'aide de&amp;nbsp;mon coll&amp;#232;gue&amp;nbsp;&lt;A href="http://blogs.dotnetguru.org/jbevain" target=_blank&gt;Jb&lt;/A&gt;) et l'ayant d&amp;#233;but&amp;#233; (le site&amp;nbsp;sera en prod lorsque la beta 2 et la licence go-live sera disponible) , j'ai&amp;nbsp;d&amp;#233;velopp&amp;#233; &lt;/FONT&gt;&lt;A href="http://blogs.labo-dotnet.com/patrice/images/2Beta2.jpg" target=_blank&gt;&lt;FONT size=2&gt;un petit outil &lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt;qui permettra de se faciliter la vie. Il sera disponible quand la b&amp;#233;ta 2 de VS 2005 le sera ;). (Vous n'en avez pas besoin si vous utiliser la CTP December).&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=18102" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=18102</wfw:commentRss></entry><entry><title>Utiliser l'émulateur Windows CE (donc Pocket PC) sans Visual Studio</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2005/02/09/18086.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:18086</id><created>2005-02-09T11:00:00Z</created><content type="text/html" mode="escaped">&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;IMG height=263 src="/patrice/images/emulateurfr.png" width=167 border=0&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT size=2&gt;Malgr&amp;#233; ce que l'on peut lire sur le net, il est tout &amp;#224; fait possible d'installer l'&amp;#233;mulateur Pocket PC sans&amp;nbsp;a avoir &amp;#224; installer Visual Studio .net. Cela peut &amp;#234;tre pratique pour tester ou m&amp;#234;me pour faire tout type de d&amp;#233;mo avec l'&amp;#233;mulateur.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Pour ce faire t&amp;#233;l&amp;#233;charger l'&amp;#233;mulateur Windows CE 5.0 :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=a120e012-ca31-4be9-a3bf-b9bf4f64ce72&amp;amp;DisplayLang=en"&gt;&lt;FONT size=2&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=a120e012-ca31-4be9-a3bf-b9bf4f64ce72&amp;amp;DisplayLang=en&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Puis t&amp;#233;l&amp;#233;charger les images en fran&amp;#231;ais :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://download.microsoft.com/download/e/2/8/e28792ca-d04b-407b-9b18-75b9128f0cc9/Windows%20Mobile%202003%20Second%20Edition%20Emulator%20Images%20for%20Pocket%20PC%20-%20FRA.msi"&gt;&lt;FONT size=2&gt;http://download.microsoft.com/download/e/2/8/e28792ca-d04b-407b-9b18-75b9128f0cc9/Windows%20Mobile%202003%20Second%20Edition%20Emulator%20Images%20for%20Pocket%20PC%20-%20FRA.msi&lt;/FONT&gt;&lt;/A&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=4953d34d-692f-4c87-ac69-cb235dbdad1d&amp;amp;displaylang=en&amp;amp;Hash=W6YFBY9"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Faites ensuite un .bat contenant la commande suivante :&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;"C:\Program Files\Windows CE 5.0 Emulator\Emulator_500.exe" /ceimage "c:\Program Files\Pocket PC 2003 Second Edition Emulators\FRA\Pocket_PC\PPC_2003_SE_FRA.bin" /skin "c:\Program Files\Pocket PC 2003 Second Edition Emulators\FRA\Pocket_PC\PPC_2003_SE.xml"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;(tout mettre sur une seule ligne)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Et le tour est jou&amp;#233; :)&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=18086" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=18086</wfw:commentRss></entry><entry><title>[Tips] Petit bug VS .net 2003 : Les évènements fantômes dans le compact framework</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2005/02/02/18056.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:18056</id><created>2005-02-02T17:00:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Ce post aurait pu &amp;#234;tre dans la rubrique VB.net is not C# mais plus que le langage C# qui aurait pu &amp;#234;tre mis en cause, c'est bien l'IDE qui est&amp;nbsp;fautif sur ce petit probl&amp;#232;me qui intervient lorsque l'on d&amp;#233;veloppe des applications en C# pour le Compact Framework.&lt;/P&gt;
&lt;P&gt;Certaines personnes sont venues me voir en me disant que le C# ne g&amp;#233;rait pas l'&amp;#233;v&amp;#232;nement Deactivate lorsqu'ils d&amp;#233;veloppent une application Compact framework. En effet, en regardant la liste des &amp;#233;v&amp;#232;nements disponibles on constate que cet &amp;#233;v&amp;#232;nement est absent de la liste.&lt;/P&gt;
&lt;P&gt;&lt;IMG height=236 src="/patrice/images/missingdeactivate.png" width=492 border=0&gt;&lt;/P&gt;
&lt;P&gt;Bien evidemment, ce n'est pas le langage qui est en faute, c'est Visual Studio qui ne l'affiche pas dans la liste.&lt;/P&gt;
&lt;P&gt;(En VB, l'&amp;#233;v&amp;#232;nement est bien pr&amp;#233;sent dans la liste)&lt;/P&gt;
&lt;P&gt;&lt;IMG height=224 src="/patrice/images/deactivatevb.png" width=485 border=0&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pour r&amp;#233;gler ce probl&amp;#232;me, c'est tr&amp;#232;s simple, il suffit de coder la gestion de l'&amp;#233;v&amp;#232;nement &amp;#224; la mano :&lt;/P&gt;
&lt;P&gt;Cr&amp;#233;er un delegate dans la m&amp;#233;thode InitializeComponent :&lt;/P&gt;&lt;FONT color=#0000ff size=5&gt;
&lt;P&gt;&lt;FONT size=2&gt;this&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Deactivate+=&lt;FONT color=#0000ff&gt;new&lt;/FONT&gt;&lt;B&gt; System.EventHandler(&lt;/B&gt;&lt;FONT color=#0000ff&gt;this&lt;/FONT&gt;.mydeactivate);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Puis cr&amp;#233;er la m&amp;#233;thode qui sera appel&amp;#233;e lorsque l'&amp;#233;v&amp;#232;nement sera d&amp;#233;clench&amp;#233; :&lt;/P&gt;&lt;FONT color=#0000ff size=5&gt;
&lt;P&gt;&lt;FONT size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;B&gt; &lt;/B&gt;&lt;FONT color=#0000ff&gt;void&lt;/FONT&gt;&lt;B&gt; mydeactivate(&lt;/B&gt;&lt;FONT color=#0000ff&gt;object&lt;/FONT&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; sender, System.EventArgs e)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;{&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;FONT color=#008000&gt;&lt;FONT size=2&gt;//mon code&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;
&lt;P&gt;&lt;FONT size=2&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;/B&gt;
&lt;P&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=18056" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=18056</wfw:commentRss></entry><entry><title>Student Club Summit 1ère edition</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2005/01/23/18029.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:18029</id><created>2005-01-23T09:10:00Z</created><content type="text/html" mode="escaped">&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;&lt;IMG height=125 src="/patrice/images/logo_SCS2.JPG" width=200 border=0&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;La premi&amp;#232;re &amp;#233;dition du Student Club Summit a eu lieu ce vendredi et ce samedi. Cet &amp;#233;v&amp;#232;nement gratuit et organis&amp;#233; par Microsoft France &amp;#233;tait destin&amp;#233; aux &amp;#233;tudiants, students clubs, et MVS de toute la France. Les personnes pr&amp;#233;sentes ont pu d&amp;#233;couvrir (ou re-d&amp;#233;couvrir) l'Imagine Cup et notamment la cat&amp;#233;gorie Visual Gaming, TheSpoke, etc...&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;Et surtout ces deux journ&amp;#233;es furent l'occasion d'assister &amp;#224;&amp;nbsp;un bon nombre de sessions aussi interessantes que vari&amp;#233;es (Pr&amp;#233;sentation de la plate-forme 64 bits, La Programmation Orient&amp;#233;e Aspect, Sharepoint, InfoPath, etc...).&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;Cet &amp;#233;v&amp;#232;nement fut plut&amp;#244;t r&amp;#233;ussi et a r&amp;#233;unit chaque jour plus d'une centaine d'&amp;#233;tudiants venant de toute la France (Lyon, Perpignan, Nice, Paris, etc...)&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;J'y ai pr&amp;#233;sent&amp;#233; 2 sessions : (Cliquer pour t&amp;#233;l&amp;#233;charger les slides)&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;&lt;A href="http://blogs.labo-dotnet.com/patrice/Pr&amp;#233;sentation InfoPath.ppt"&gt;Pr&amp;#233;sentation d'InfoPath&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P align=justify&gt;&lt;FONT size=2&gt;&lt;A href="http://blogs.labo-dotnet.com/patrice/Ecrire du code s&amp;#233;curis&amp;#233; avec .net.ppt"&gt;Ecrire du code s&amp;#233;curis&amp;#233; avec .net&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=18029" width="1" height="1"&gt;</content><slash:comments>1</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=18029</wfw:commentRss></entry><entry><title>[FUN] Don Box Tech Ed 2001</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/10/17895.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17895</id><created>2004-12-10T09:36:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Cela date un peu mais cela reste tr&amp;#232;s fun. Je vous invite &amp;#224; &lt;A href="http://www.dnjonline.com/teched2001/DonBox_head2head.html"&gt;visiter cette page&lt;/A&gt; et &amp;#224; &lt;A href="http://www.dnjonline.com/teched2001/DonBoxBath.wmv"&gt;regarder cette vid&amp;#233;o&lt;/A&gt; pour regarder Don Box qui fait encore une fois preuve d'originalit&amp;#233; lors d'une session qu'il pr&amp;#233;senta au Tech Ed 2001 &amp;#224; Barcelone.&lt;/P&gt;
&lt;P&gt;Je ne vous en dis pas plus, &amp;#224; vous de juger...&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG src="http://www.dnjonline.com/images/teched2001/DoninBath_small.jpg"&gt;&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17895" width="1" height="1"&gt;</content><slash:comments>3</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17895</wfw:commentRss></entry><entry><title>Compte Rendu Rencontres Visual Basic 9 décembre 2004 à Toulouse</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/09/17894.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17894</id><created>2004-12-09T21:31:00Z</created><content type="text/html" mode="escaped">&lt;P align=justify&gt;Je vous l'ai indiqu&amp;#233; plusieurs fois sur mon blog, Microsoft organise en ce moment les rencontres Visual Basic dans toute la France. Le but principal de ces rencontres et de sensibiliser le d&amp;#233;veloppement avec la plate-forme .net et plus particuli&amp;#232;rement avec Visual Basic.net. Je me suis donc rendu aujourd'hui &amp;#224; la rencontre VB qui avait lieu sur Toulouse.&lt;/P&gt;
&lt;P align=justify&gt;74 personnes &amp;#233;taient pr&amp;#233;sentes et ont &amp;#233;t&amp;#233; tr&amp;#232;s interess&amp;#233;es par cette grosse demi-journ&amp;#233;e. Cette demi-journ&amp;#233;e fut l'occasion de d&amp;#233;couvrir vb.net &amp;#224; travers le d&amp;#233;veloppement d'applications simples mais vari&amp;#233;es : une application windows, web, service web, mobile. Nous avons &amp;#233;galement eu quelques rappels de POO ainsi qu'une introduciton &amp;#224; ADO.net et son mode d&amp;#233;connect&amp;#233;. Les probl&amp;#232;matiques de migration ont &amp;#233;t&amp;#233; &amp;#233;galement abord&amp;#233;s.&lt;/P&gt;
&lt;P align=justify&gt;Nous avons donc eu droit &amp;#224; une bonne introduction au d&amp;#233;veloppement .net et au VB.net et je suis persuad&amp;#233; qu'il y a plusieurs d&amp;#233;veloppeurs pr&amp;#233;sents dans la salle qui ont essay&amp;#233; de developpeur leur premi&amp;#232;re application une fois rentr&amp;#233; chez eux gr&amp;#226;ce &amp;#224; VB.net 2003 Edition Initiation qui est offert gratuitement &amp;#224; tous les participants.&lt;/P&gt;
&lt;P align=justify&gt;J'ai &amp;#233;t&amp;#233; &amp;#233;galement agr&amp;#233;ablement surpris par les questions pos&amp;#233;es par le public qui ont bien montr&amp;#233; que contrairement &amp;#224; ce que certains pensent les d&amp;#233;veloppeurs VB6 savent ce qu'ils font et ce qui se passe derri&amp;#232;re...&lt;/P&gt;
&lt;P align=justify&gt;Si vous &amp;#234;tes d&amp;#233;veloppeurs VB 4,5,6 et que vous n'avez pas encore franchi le pas vers VB.net, je ne que vous conseillez de vous rendre aux derni&amp;#232;res rencontres VB.net qui seront sur Paris.&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG height=300 src="/patrice/images/jvb400300.png" width=400 border=0&gt;&lt;/P&gt;
&lt;P align=center&gt;Le MSDN R&amp;#233;gional Director Sud-Ouest et &lt;A target=_blank href="http://blogs.microsoft.fr/ericv/"&gt;Eric Verni&amp;#233; &lt;/A&gt;(MS France)&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17894" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17894</wfw:commentRss></entry><entry><title>[VB.net is not C#] Option Strict</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/03/17878.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17878</id><created>2004-12-03T22:55:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;&lt;A href="http://blogs.labo-dotnet.com/patrice/archive/2004/12/03/4889.aspx" target=_blank&gt;Dans mon post pr&amp;#233;c&amp;#233;dent&lt;/A&gt;,&amp;nbsp;Matthieu Nicolescu&amp;nbsp;me sugg&amp;#233;rait un nouveau post pour cette rubrique VB.net is not C# car il semblait plut&amp;#244;t enerv&amp;#233; (et il a enti&amp;#232;rement raison) des libert&amp;#233;s que permet le VB.net.&lt;/P&gt;
&lt;P&gt;En effet, par d&amp;#233;faut, le code suivant compile mais ne fonctionne pas :&lt;/P&gt;&lt;B&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; Main()&lt;/P&gt;
&lt;P&gt;DoSomething("zzz") &lt;FONT color=#008000&gt;' Le code fonctionne si on met "True" &amp;#224; la place de "zzz"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; DoSomething(&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; param &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Boolean&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt;)&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; param &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt;
&lt;P&gt;Console.WriteLine("Le param&amp;#232;tre est &amp;#224; True")&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Je suis enti&amp;#232;rement d'accord il est plut&amp;#244;t choquant que ce code compile sans probl&amp;#232;me et l&amp;#232;ve une exception lors de l'&amp;#233;x&amp;#233;cution. Cela est du au langage VB lui m&amp;#234;me qui est tr&amp;#232;s, et m&amp;#234;me trop permissif. En effet, il est toujours possible de ne pas d&amp;#233;clarer ses variables en VB.net. (il suffit de mettre un Option Explicit Off), et on peut toujours laisser faire le compilateur VB pour le cast des variables et ainsi ne se soucier de rien. Si l'on souhaite &amp;#233;viter que le code pr&amp;#233;sent&amp;#233; ci-dessus compile et imposer au d&amp;#233;veloppeur le cast explicite il faut mettre la directive Option Strict &amp;#224; On pour tous vos projets VB.net. Vous &amp;#233;viterez ainsi des erreurs plus ou moins subtiles &amp;#224; d&amp;#233;tecter...&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17878" width="1" height="1"&gt;</content><slash:comments>1</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17878</wfw:commentRss></entry><entry><title>[Rappel] Les rencontres Visual Basic</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/03/17873.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17873</id><created>2004-12-03T22:29:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Je vous rappelle que les rencontres Visual Basic ont lieu dans toute la France et qu'elles continuent. Je serais pour ma part &amp;#224; Toulouse le 9 d&amp;#233;cembre.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P align=center&gt;&lt;IMG height=60 src="/patrice/images/migrer.bmp" width=60 border=0&gt;&lt;BR&gt;&lt;IMG height=65 src="/patrice/images/vbnet.gif" width=75 border=0&gt;&lt;/P&gt;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;FONT size=2&gt;Microsoft organise cette ann&amp;#233;e les rencontres Visual Basic dans 7 villes fran&amp;#231;aises. Ces rencontres seront l'occasion de d&amp;#233;couvrir .net et ainsi appr&amp;#233;cier tous les avantages de la migration vers la plate-forme .net. Vous &amp;#234;tes d&amp;#233;veloppeurs VB 6, Delphi, Powerbuilder, Access, vous savez maintenant quoi faire &lt;/FONT&gt;&lt;A title="" href=""&gt;&lt;FONT size=2&gt;&lt;IMG src="http://messenger.msn.fr/Resource/emoticons/wink_smile.gif" border=0&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=2&gt;Pour vous inscrire :&lt;BR&gt;&lt;/FONT&gt;&lt;A href="http://galilee.microsoft.fr/vbtour/"&gt;&lt;FONT size=2&gt;http://galilee.microsoft.fr/vbtour/&lt;/FONT&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;
&lt;TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=10 align=center border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;FONT size=2&gt;07/12/2004 &lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="60%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=5d900ba2-d93d-407c-b334-f705e2a35ec8"&gt;&lt;FONT size=2&gt;Nantes&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=5d900ba2-d93d-407c-b334-f705e2a35ec8"&gt;&lt;FONT size=2&gt;s'inscrire&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;FONT size=2&gt;09/12/2004 &lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="60%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=4d258142-2811-44ea-be8a-3e5a4a2420b2"&gt;&lt;FONT size=2&gt;Toulouse&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=4d258142-2811-44ea-be8a-3e5a4a2420b2"&gt;&lt;FONT size=2&gt;s'inscrire&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;FONT size=2&gt;14/12/2004 &lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="60%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=63817011-d9cb-4872-9c87-bff3d05a6c45"&gt;&lt;FONT size=2&gt;Paris&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=63817011-d9cb-4872-9c87-bff3d05a6c45"&gt;&lt;FONT size=2&gt;s'inscrire&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;FONT size=2&gt;15/12/2004 &lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="60%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=11f10600-eefd-450b-8e1f-2816a16053d7"&gt;&lt;FONT size=2&gt;Paris&lt;/FONT&gt;&lt;/A&gt;&lt;/TD&gt;
&lt;TD vAlign=top width="20%"&gt;&lt;A href="http://galilee.microsoft.fr/b71ba426639a4442ae26c4539693d02a/UserCreation.aspx?SesID=11f10600-eefd-450b-8e1f-2816a16053d7"&gt;&lt;FONT size=2&gt;s'inscrire&lt;/FONT&gt;&lt;/A&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17873" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17873</wfw:commentRss></entry><entry><title>[VB.net is not C#] Les imports (&lt;=&gt;using)</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/03/17869.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17869</id><created>2004-12-03T18:43:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Les d&amp;#233;veloppeurs C# seront sans doute surpris mais le code suivant compile sans aucun probl&amp;#232;me sous VS.net...&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;
&lt;P&gt;Public&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Class&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; clsAList&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Private&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; m_AList &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; ArrayList&lt;/P&gt;&lt;/B&gt;&lt;B&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Public&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt;(&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; thearraylist &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; ArrayList)&lt;/P&gt;
&lt;P&gt;m_AList = thearraylist&lt;/P&gt;
&lt;P&gt;&lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;
&lt;P&gt;End&lt;/FONT&gt;&lt;B&gt;&lt;FONT size=2&gt; &lt;/B&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;Class&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Vous aurez sans doute remarqu&amp;#233; qu'il manque normallement un Imports System.Collections n&amp;#233;cessaire &amp;#224; l'utilisation de la classe ArrayList.&lt;/P&gt;
&lt;P&gt;Cette classe est compil&amp;#233;e sans aucun probl&amp;#232;me par VS.net alors que si vous saisissez cette classe telle quelle dans un autre IDE (#develop par exemple) ou m&amp;#234;me dans notepad et utilisez le compilateur vb.net, vous devriez avoir des ennuis...&lt;/P&gt;
&lt;P&gt;Comment est-ce possible ? Gr&amp;#226;ce aux Imports "automatiques" fonctionnalit&amp;#233; propos&amp;#233;e par VS.net (et m&amp;#234;me #Develop).&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG height=324 src="/patrice/images/importsauto.png" width=511 border=0&gt;&lt;/P&gt;
&lt;P align=left&gt;Cette fonction peut paraitre s&amp;#233;duisante au premier abord mais je vous d&amp;#233;conseille n&amp;#233;ammoins de l'utiliser. En effet, vous l'avez peut-&amp;#234;tre d&amp;#233;j&amp;#224; compris, cela nuit gravement &amp;#224; la portabilit&amp;#233; de votre code source... Imaginons que vous creez une solution sous #Develop que vous ajouter la classe&amp;nbsp;ci-dessus, votre application ne compilera plus, etc.. etc... Vous avez compris le probl&amp;#232;me... &lt;/P&gt;
&lt;P align=left&gt;En conclusion mettez explicitement tous les Imports n&amp;#233;cessaires dans vos classes pour &amp;#233;viter ce genre d'ennuis...&lt;/P&gt;
&lt;P align=left&gt;Les d&amp;#233;veloppeurs C# n'auront pas ce genre d'ennuis puisque cette fonction n'est pas impl&amp;#233;ment&amp;#233;e.&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17869" width="1" height="1"&gt;</content><slash:comments>7</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17869</wfw:commentRss></entry><entry><title>Emulateur dans emulateur... (suite et fin)</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/03/17868.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17868</id><created>2004-12-03T18:16:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Apr&amp;#232;s quelques recherches sur les raisons de l'incompatibilit&amp;#233; de Virtual PC et l'&amp;#233;mulateur utilis&amp;#233; par Visual Studio.net 2003, je me suis rendu compte que l'&amp;#233;mulateur utilis&amp;#233; par VS.net ne semble &amp;#234;tre rien d'autre qu'une sorte de Virtual PC. En effet, cet &amp;#233;mulateur n'est pas d&amp;#233;velopp&amp;#233; par Microsoft mais par... Connectix la soci&amp;#233;t&amp;#233; cr&amp;#233;atrice de Virtual PC qui s'est fait rachet&amp;#233;e par Microsoft... En conclusion ce bug est dit "by design" puisqu'il est n'est pas possible de faire tourner une machine virtuelle VPC &amp;#224; l'int&amp;#233;rieur d'une autre machine virtuelle VPC.&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG height=456 src="/patrice/images/emulvpc.png" width=284 border=0&gt;&lt;/P&gt;
&lt;P align=left&gt;Bonne nouvelle, l'&amp;#233;mulateur livr&amp;#233; avec VS 2005 a &amp;#233;t&amp;#233; enti&amp;#232;rement refait et fonctionne sous Virtual PC. Encore une raison d'attendre avec impatience Octobre ou Novembre 2005...&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17868" width="1" height="1"&gt;</content><slash:comments>2</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17868</wfw:commentRss></entry><entry><title>3637</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/03/17867.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17867</id><created>2004-12-03T18:01:00Z</created><content type="text/html" mode="escaped">&lt;IMG height=1 src="http://logi7.xiti.com/hit.xiti?s=164830&amp;s2=2&amp;p=2_Mobilisation-Internet::Relais::Banniere-2515&amp;" width=1&gt; 
&lt;P align=center&gt;&lt;A href="http://www.telethon.fr/040-Espace-Relais/40-10_Accueil-Relais.asp?Hebergeur_id=2515" target=_blank&gt;&lt;IMG src="http://www.telethon.fr/images/1-Internet/ill_Banniere-Univ-1_468x60.gif" border=0&gt;&lt;/A&gt;&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17867" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17867</wfw:commentRss></entry><entry><title>Emulateur dans Emulateur...</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/12/01/17860.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17860</id><created>2004-12-01T10:52:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;grrr &lt;A title="" href=""&gt;&lt;IMG src="http://messenger.msn.fr/Resource/emoticons/angry_smile.gif" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Je n'aime pas trop Virtual PC et le probl&amp;#232;me que je rencontre n'arrange pas l'opinion que j'ai de ce logiciel...&lt;/P&gt;
&lt;P&gt;Il est apparemment impossible d'utiliser l'&amp;#233;mulateur Pocket PC ou autre livr&amp;#233; avec Visual Studio.net 2003 sous Virtual PC... &lt;A title="" href=""&gt;&lt;IMG src="http://messenger.msn.fr/Resource/emoticons/angry_smile.gif" border=0&gt;&lt;/A&gt; J'ai trouv&amp;#233; plusieurs personnes ayant ce probl&amp;#232;me sur le net mais je n'ai trouv&amp;#233; aucune solution pour palier &amp;#224; ce probl&amp;#232;me... Quelqu'un a une id&amp;#233;e ??&lt;/P&gt;
&lt;P align=center&gt;&lt;IMG height=136 src="/patrice/images/bugvirtualpc.png" width=378 border=0&gt;&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17860" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17860</wfw:commentRss></entry><entry><title>[VB.net is not C#] Les interfaces</title><link rel="alternate" type="text/html" href="http://forums.labo-dotnet.com/blogs/patrice/archive/2004/11/19/17845.aspx" /><id>33325cf9-4335-432a-b7b4-cf02bc424355:17845</id><created>2004-11-19T13:57:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Autre diff&amp;#233;rence entre VB.net et C# : les interfaces. Les interfaces en C# profitent du fait que l'objet repr&amp;#233;sent&amp;#233; par l'interface h&amp;#233;ritera forc&amp;#233;ment de System.Object. C'est donc tout naturellement qu'une interface (en c#) impl&amp;#233;mente les m&amp;#233;thodes GetType, ToString etc... de System.Object. Voir ci-dessous :&lt;/P&gt;
&lt;P&gt;&lt;IMG height=172 src="/patrice/images/icsharp.png" width=421 border=0&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;En VB.net, il en est tout autrement comme vous pouvez le voir ci-dessous.&lt;/P&gt;
&lt;P&gt;&lt;IMG height=104 src="/patrice/images/ivb.png" width=260 border=0&gt;&lt;/P&gt;
&lt;P&gt;VB.net ne vous permet pas d'utiliser directement les m&amp;#233;thodes ToString, GetType pour les interfaces comme c'est le cas en C#, vous devez caster votre interface en un objet pour arriver au m&amp;#234;me r&amp;#233;sultat.&lt;/P&gt;
&lt;P&gt;On peut se dire que le VB.net &amp;#224; raison, une interface &amp;#233;tant un contrat, et donc la consommation de cette interface ne devrait permettre d'utiliser que les m&amp;#233;thodes publi&amp;#233;es mais la o&amp;#249; le C# &amp;#224; raison, c'est que n'importe quel objet impl&amp;#233;mentant une interface h&amp;#233;rite forc&amp;#233;ment de System.Object.&lt;/P&gt;
&lt;P&gt;Outre la question de la pertinance du choix pour telle ou telle impl&amp;#233;mentation -nous vous laissons discuter de cela dans les commentaires - le fait est que, par exemple, lors ce que l'on r&amp;#233;cup&amp;#232;re une interface, et qu'on veut travailler sur son type, il va falloir cr&amp;#233;er une variable temporaire, d&amp;#233;clar&amp;#233;e comme un Object, pour pouvoir enfin acc&amp;#233;der &amp;#224; ces m&amp;#233;thodes.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://forums.labo-dotnet.com/aggbug.aspx?PostID=17845" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://forums.labo-dotnet.com/blogs/patrice/commentrss.aspx?PostID=17845</wfw:commentRss></entry></feed>