<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WinForms</title><link>https://www.dotnetzone.gr:443/cs/forums/12/ShowForum.aspx</link><description>Θέματα για rich client / windows εφαρμογές, σε οποιαδήποτε γλώσσα (VB.NET, C#, managed C++, κ.α.)</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Διαγωνισμός : Οσο λιγότερο κώδικα τόσο περισσότερα μιλφειγς !!!!!!!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/338.aspx</link><pubDate>Thu, 21 Oct 2004 18:27:18 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:338</guid><dc:creator>isidoros</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/338.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=338</wfw:commentRss><description>Imports System.Text&lt;br /&gt;&lt;br /&gt;    Dim enc_result As System.Text.Encoding = Encoding.ASCII.GetEncoding(737)&lt;br /&gt;    Dim enc_SOURCE As System.Text.Encoding = Encoding.ASCII.GetEncoding(1253)&lt;br /&gt;&lt;br /&gt;    Private Function Encode(ByVal STR As String) As String&lt;br /&gt;        Return enc_result.GetString(enc_SOURCE.GetBytes(STR))&lt;br /&gt;    End Function&lt;br /&gt;</description></item><item><title>Re: Write in ASCII file for DOS apps via .NET, HELP!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/333.aspx</link><pubDate>Wed, 20 Oct 2004 18:35:32 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:333</guid><dc:creator>gkontog</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/333.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=333</wfw:commentRss><description>Φχαρστώ!</description></item><item><title>Re: Write in ASCII file for DOS apps via .NET, HELP!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/326.aspx</link><pubDate>Tue, 19 Oct 2004 22:07:50 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:326</guid><dc:creator>jded</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/326.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=326</wfw:commentRss><description>Να δω το μιλφειγ&amp;nbsp;&lt;img src="/Forums//emoticons/emotion-49.gif" alt="Cake" /&gt; πρώτα και μετά σου στέλνω!!!!!! &lt;img src="/Forums//emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;img src="/Forums//emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;br /&gt; &lt;br /&gt; Αντε επειδή είμαι καλό παιδί κατα βάθος....&lt;img src="/Forums//emoticons/emotion-10.gif" alt="Embarrassed" /&gt;&lt;br /&gt; &lt;br /&gt; Private Sub WriteAscii(ByVal strFilename As String, ByVal strline As String, ByVal Append As Boolean)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim SrcEnc As Encoding = Encoding.Unicode&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim DstEnc As Encoding = Encoding.GetEncoding(737)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim sw As StreamWriter&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim asciiString As String&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim unicodeBytes As Byte() = SrcEnc.GetBytes(strline)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim asciiBytes As Byte() = Encoding.Convert(SrcEnc, DstEnc, unicodeBytes)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Dim asciiChars(DstEnc.GetCharCount(asciiBytes, 0, asciiBytes.Length) - 1) As Char&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; DstEnc.GetChars(asciiBytes, 0, asciiBytes.Length, asciiChars, 0)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; asciiString = New String(asciiChars)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sw = New StreamWriter(strFilename, Append, DstEnc)&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sw.Write(asciiString)&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sw.Flush()&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sw.Close()&lt;br /&gt; End Sub&lt;br /&gt; &lt;br /&gt; Μη ξεχάσεις τα imports &lt;br /&gt; Imports System.IO&lt;br /&gt; Imports System.Text&lt;br /&gt;</description></item><item><title>Write in ASCII file for DOS apps via .NET, HELP!</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/325.aspx</link><pubDate>Tue, 19 Oct 2004 21:54:36 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:325</guid><dc:creator>gkontog</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/325.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=12&amp;PostID=325</wfw:commentRss><description>Ναι,&lt;br /&gt;&lt;br /&gt;Δυστυχώς είμαι αναγκασμένος να το κάνω και αυτό. Πρέπει από τα data του SQL να φτιάξω σε VB.NET&amp;nbsp;ένα ASCII αρχείο που θα το διαβάσει μία DOS εφαρμογή (και να μη ξαναδώ ερωτήσεις τύπου Why VB6? Εδώ έχουμε DOS! Dososaurus Archaicus Gamopetosayridae στα λατινικά).&lt;br /&gt;&lt;br /&gt;Προσπάθησα να καλέσω την CharToOem αλλά δεν είχα επιτυχία. Επαιξα με το System.Text.Encoding και πάλι τίποτα.&lt;br /&gt;&lt;br /&gt;Μήπως έχει κάποιος, κάποια ιδέα; Κερνάω μιλφέϊγ!&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>