tag:feedback.developerfusion.com,2008-02-07:/activity Developer Fusion on UserVoice 2012-05-11T15:43:58-07:00 tag:feedback.developerfusion.com,2008-02-07:Event/11333469 2012-05-11T15:43:58-07:00 2012-05-11T15:43:58-07:00 Correct a mistake on the &quot;Write for us&quot; page <p>Anonymous suggested:<br />I recently read the &quot;Write for us&quot; page and found a little mistake in the first paragraph of &quot;What Can I Write About?&quot; where it says &quot;[...] be they desktop developers, web wranglers or mobile mavens, working with .NET, Ruby, PHP, Android, iOS, Windows, Android or Linux.&quot;. Android is mentioned twice.</p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/11278020 2012-05-03T00:28:10-07:00 2012-05-03T00:28:10-07:00 Submitting code to be converted via URL [updated] <p>Is there a way to post code to be converted via a URL instead of the site's web form? I can easily create a javascript bookmarklet in my browser to accept my code to be converted (via clipboard or current selection), so it would be nice to be able to submit that to the conversion site via a URL without having to first open a new browser window to the conversion site's web form. Great tool--use it frequently!</p><p>Aphillippe said:<br /><div class="typeset"><p>that would be awesome, really speed things up. maybe separate bookmarklets for each conversion (e.g. c# to vb, vb to c# etc.)</p></div></p> Aphillippe tag:feedback.developerfusion.com,2008-02-07:Event/11271330 2012-05-02T06:05:44-07:00 2012-05-02T06:05:44-07:00 LinQ Queries <p>Mazin Scott suggested:<br />In LinQ conversions, specifically from C# to VB.Net, it doesn't add &quot;SELECT&quot; even if its specified in the expression.</p> Mazin Scott tag:feedback.developerfusion.com,2008-02-07:Event/11214955 2012-04-23T10:33:25-07:00 2012-04-23T10:33:25-07:00 I am getting an EOF error with this code, can't see what the issue is? <p>Ben Waterson suggested:<br />paragraphs = doc.MainDocumentPart.Document.Body.Elements&lt;Paragraph&gt;(); foreach (Paragraph para in paragraphs) { //t we export paragraphs as &lt;p&gt; tags text.Append(“&lt;p&gt;”); foreach (Run r in para.Elements&lt;Run&gt;()) { if (r.RunProperties != null) { //t ADD OPENNING TAGS HERE, if any if (r.RunProperties.Bold != null) text.Append(“&lt;b&gt;”); if (r.RunProperties.Italic != null) text.Append(“&lt;i&gt;”); if (r.RunProperties.Underline != null) text.Append(“&lt;u&gt;”); if (r.RunProperties.Color != null &amp;&amp; r.RunProperties.Color.Val != null) text.Append(“&lt;span style=”color:#” + r.RunProperties.Color.Val + “”&gt;”); //t ADD TEXT HERE text.Append(r.InnerText); //t ADD CLOSING TAGS HERE //t IN BACK ORDER OF OPENNING TAGS if (r.RunProperties.Color != null &amp;&amp; r.RunProperties.Color.Val != null) text.Append(“&lt;/span&gt;”); if (r.RunProperties.Underline != null) text.Append(“&lt;/u&gt;”); if (r.RunProperties.Italic != null) text.Append(“&lt;/i&gt;”); if (r.RunProperties.Bold != null) text.Append(“&lt;/b&gt;”); } else { text.Append(r.InnerText); } } text.Append(“&lt;/p&gt;”); } text.AppendLine(“ &lt;/body&gt;”); text.AppendLine(“&lt;/html&gt;”); _showTextTB.Text = text.ToString(); </p> Ben Waterson tag:feedback.developerfusion.com,2008-02-07:Event/11205394 2012-04-21T12:46:13-07:00 2012-04-21T12:46:13-07:00 We keep getting this / vb to c# --&gt;Sorry, the service appears to be down at the moment. Please try again later <p>Michael suggested:<br />We keep getting this / vb to c# --&gt;Sorry, the service appears to be down at the moment. Please try again later </p> Michael tag:feedback.developerfusion.com,2008-02-07:Event/11193000 2012-04-19T10:48:59-07:00 2012-04-19T10:48:59-07:00 z = x * (1 + r) ^ y in VB conversion [updated] <p>Converts to z == x * (1 + r) etc. This is clearly an arithmetic operation but it is being converted to a boolean comparison</p><p>dave398 said:<br /><div class="typeset"><p>how about the == Operator. Ran across this in some code.</p> <p>c#</p> <p>boolvalue = aValue == bValue;</p> <p>translates into vb.net</p> <p>boolvalue = aValue = bValue</p></div></p> dave398 tag:feedback.developerfusion.com,2008-02-07:Event/11191868 2012-04-19T08:10:24-07:00 2012-04-19T08:10:24-07:00 mid statement not being converted properly <p>gauthier suggested:<br />I want to convert some code which is using the mid statement (http://msdn.microsoft.com/en-us/library/xz5s6003.aspx), the statement as opposed to the function is used as a target for assignment. Dim TestString As String ' Initializes string. TestString = &quot;The dog jumps&quot; ' Returns &quot;The fox jumps&quot;. Mid(TestString, 5, 3) = &quot;fox&quot; ' Returns &quot;The cow jumps&quot;. Mid(TestString, 5) = &quot;cow&quot; ' Returns &quot;The cow jumpe&quot;. Mid(TestString, 5) = &quot;cow jumped over&quot; ' Returns &quot;The duc jumpe&quot;. Mid(TestString, 5, 3) = &quot;duck&quot; As explained there: http://www.vbforums.com/showpost.php?s=17e8fcab432e62648b66b024dd59572e&amp;p=2583241&amp;postcount=3 it is difficult to do that with inline code conversion, which would result in convoluted code. The conversion would benefit to use a method which takes a reference to the string to be modified. I would expect the conversion to result in this code: string TestString; // Initializes string. TestString = &quot;The dog jumps&quot;; // Returns &quot;The fox jumps&quot;. MidStatement(ref TestString, 5, 3, &quot;fox&quot;); // Returns &quot;The cow jumps&quot;. MidStatement(ref TestString, 5, &quot;cow&quot;); // Returns &quot;The cow jumpe&quot;. MidStatement(ref TestString, 5, &quot;cow jumped over&quot;); // Returns &quot;The duc jumpe&quot;. MidStatement(ref TestString, 5, 3, &quot;duck&quot;); with the automatic insertion of a static MidStatement method in the class containing the statements.</p> gauthier tag:feedback.developerfusion.com,2008-02-07:Event/11174800 2012-04-17T07:07:41-07:00 2012-04-17T07:07:41-07:00 Thanks for such a great site ... your conversion from C# to VB.NET and vice-versa is AWESOME !!!! Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/11122886 2012-04-09T10:19:05-07:00 2012-04-09T10:19:05-07:00 async/await C# keywords gives EOF <p>Morten Nielsen suggested:<br />Please add support for async/await. Example: var result = await foo.GetAsync();</p> Morten Nielsen tag:feedback.developerfusion.com,2008-02-07:Event/11105080 2012-04-06T02:19:27-07:00 2012-04-06T02:19:27-07:00 Write About Video Files &amp; the Cloud: Strategies For Eliminating Bandwidth Bottlenecks <p>Sydney B suggested:<br />Zencoder has created a summary of techniques to aid in the problem with bandwidth bottle necks for those files too large to transfer over the public internet. The break down can be seen at: http://www.slideshare.net/Zencoder/rethinking-large-video-files-in-the-cloud-strategies-for-eliminating-bandwidth-bottlenecks-zencoder </p> Sydney B tag:feedback.developerfusion.com,2008-02-07:Event/11069318 2012-03-31T21:34:52-07:00 2012-03-31T21:34:52-07:00 logical NOT moved into string comparison <p>Greg Nash suggested:<br />If value Like &quot;*#.*#&quot; And Not value Like &quot;*[!0-9.:]*&quot; Then becomes if (StringType.StrLike(value, &quot;*#.*#&quot;, CompareMethod.Binary) &amp;&amp; StringType.StrLike(! (value), &quot;*[!0-9.:]*&quot;, CompareMethod.Binary))); The NOT should apply to the LIKE result, not to the string. Also note the semicolon on the end.</p> Greg Nash tag:feedback.developerfusion.com,2008-02-07:Event/11056684 2012-03-29T11:21:49-07:00 2012-03-29T11:21:49-07:00 C# to VB.Net - API Calls Don't Convert Properly <p>HK suggested:<br /> [DllImport(&quot;user32.dll&quot;)] public static extern IntPtr GetWindowRect(IntPtr hWnd,ref RECT rect); Should convert to: Public Declare Function GetWindowRect Lib &quot;user32.dll&quot; (ByVal hWnd As IntPtr, ByRef rect As RECT) As IntPtr</p> HK tag:feedback.developerfusion.com,2008-02-07:Event/11050759 2012-03-28T14:53:49-07:00 2012-03-28T14:53:49-07:00 Converter throws an exception (System.IO.FileNotFoundException) <p>Steve Ball suggested:<br />Converter throws an exception during conversion. Contact me for the code (too long to post here, 500 lines). Converter output: Exception occured: System.IO.FileNotFoundException: Could not load file or assembly 'ICSharpCode.Scripting, Version=4.0.0.7070, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'ICSharpCode.Scripting, Version=4.0.0.7070, Culture=neutral, PublicKeyToken=null' at ICSharpCode.RubyBinding.NRefactoryToRubyConverter.Convert(String source, SupportedLanguage language) at ICSharpCode.CodeConversion.RubyHelpers.Convert(SupportedLanguage inputLanguage, String ProvidedSource, String&amp; ConvertedSource, String&amp; ErrorMessage) in C:\Users\James\Downloads\SharpDevelop_4.0.0.7070_Source\samples\CodeConverter\Source\ICSharpCode.CodeConversion\RubyHelpers.cs:line 15 at ICSharpCode.CodeConversion.ConvertCSharpToRuby.Convert(String ProvidedSource, String&amp; ConvertedSource, String&amp; ErrorMessage) in C:\Users\James\Downloads\SharpDevelop_4.0.0.7070_Source\samples\CodeConverter\Source\ICSharpCode.CodeConversion\SnippetConversion.cs:line 70 at ICSharpCode.CodeConversion.CodeConversionHelpers.ConvertSnippet(String TypeOfConversion, String SourceCode, String&amp; ConvertedCode, String&amp; ErrorMessage) in C:\Users\James\Downloads\SharpDevelop_4.0.0.7070_Source\samples\CodeConverter\Source\ICSharpCode.CodeConversion\HelperFunctions.cs:line 61 WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. Error Message: </p> Steve Ball tag:feedback.developerfusion.com,2008-02-07:Event/10988542 2012-03-19T08:01:50-07:00 2012-03-19T08:01:50-07:00 C#.NET to python [updated] <p>I am not able to convert C# code to Python..</p><p>Anonymous said:<br /><div class="typeset"><p>Both conversion to Python and Ruby is complete broken.</p> <p>Exception occured: System.IO.FileNotFoundException: Could not load file or assembly 'ICSharpCode.Scripting, Version=4.0.0.7070, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'ICSharpCode.Scripting, Version=4.0.0.7070, Culture=neutral, PublicKeyToken=null'.............</p></div></p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10952283 2012-03-13T20:35:46-07:00 2012-03-13T20:35:46-07:00 Object.GetType() == typeof(T) converts to Object.[GetType]() = GetType(T) should be Object.[GetType]().Equals(GetType(T)) <p>Jack Evans suggested:<br />c# Object.GetType() == typeof(T) converts to Object.[GetType]() = GetType(T) should be Object.[GetType]().Equals(GetType(T))</p> Jack Evans tag:feedback.developerfusion.com,2008-02-07:Event/10899575 2012-03-06T07:59:40-08:00 2012-03-06T07:59:40-08:00 Converted Now to DateAndTime.Now instead of DateTime.Now <p>Anonymous suggested:<br />VB.Net Console.WriteLine(Now) C# Console.WriteLine(DateTIme.Now);</p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10875565 2012-03-02T07:51:24-08:00 2012-03-02T07:51:24-08:00 Func(OF T1, result) [updated] <p>EnumerableDataRowList&lt;DataRow&gt; is a class i made EnumerableDataRowList&lt;DataRow&gt; enumerableRowCollection = new EnumerableDataRowList&lt;DataRow&gt;(Table.Rows); enumerableRowCollection.sortColumns = new String[] { &quot;Name&quot; }; //this line below requests a parameter in VB Func&lt;DataRow, String&gt; groupingFunction = enumerableRowCollection.GroupData;</p><p>Hanson said:<br /><div class="typeset"><p>It should convert to </p> <p> Dim groupingFunction As Func(Of DataRow, [String]) = AddressOf enumerableRowCollection.GroupData</p></div></p> Hanson tag:feedback.developerfusion.com,2008-02-07:Event/10875550 2012-03-02T07:49:00-08:00 2012-03-02T07:49:00-08:00 Func(OF T1, result) <p>Hanson suggested:<br />EnumerableDataRowList&lt;DataRow&gt; is a class i made EnumerableDataRowList&lt;DataRow&gt; enumerableRowCollection = new EnumerableDataRowList&lt;DataRow&gt;(Table.Rows); enumerableRowCollection.sortColumns = new String[] { &quot;Name&quot; }; //this line below requests a parameter in VB Func&lt;DataRow, String&gt; groupingFunction = enumerableRowCollection.GroupData;</p> Hanson tag:feedback.developerfusion.com,2008-02-07:Event/10865460 2012-03-01T05:49:18-08:00 2012-03-01T05:49:18-08:00 System.Web.UI.Page.MaintainScrollPositionOnPostBack = true; <p>Anonymous suggested:<br />C# code: System.Web.UI.Page.MaintainScrollPositionOnPostBack = true; Translates to VB.NET as: System.Web.UI.Page.MaintainScrollPositionOnPostBack = True Should be: Me.Page.MaintainScrollPositionOnPostBack = True</p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10842761 2012-02-27T04:55:15-08:00 2012-02-27T04:55:15-08:00 When converting a VB.NET project to C#, the MSBuild targets aren't changed: &lt;Import Project=&quot;$(MSBuildToolsPath)\Microsoft.CSharp.targets <p>BobTLO suggested:<br />Bulk conversion of an entire project doesn't change the MSBuild targets to CSharp.</p> BobTLO tag:feedback.developerfusion.com,2008-02-07:Event/10817625 2012-02-23T01:27:00-08:00 2012-02-23T01:27:00-08:00 A lot of error [updated] <p>using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace Iterator { class Program { static void Main(string[] args) { // Build a collection Collection collection = new Collection(); collection[0] = new Item(&quot;Item A&quot;); collection[1] = new Item(&quot;Item B&quot;); collection[2] = new Item(&quot;Item C&quot;); collection[3] = new Item(&quot;Item D&quot;); collection[4] = new Item(&quot;Item E&quot;); collection[5] = new Item(&quot;Item F&quot;); collection[6] = new Item(&quot;Item G&quot;); collection[7] = new Item(&quot;Item H&quot;); collection[8] = new Item(&quot;Item I&quot;); Iterator iterator = new Iterator(collection); iterator.Step = 2; Console.WriteLine(&quot;Iterating over collection:&quot;); for (Item item = iterator.First(); !iterator.IsDone; item = iterator.Next()) { Console.WriteLine(item.Name); } Console.ReadKey(); } class Item { private string _name; public Item(string name) { this._name = name; } public string Name { get { return _name; } } } //The 'Aggregate' interface interface IAbstractCollection { Iterator CreateIterator(); } class Collection : IAbstractCollection { ArrayList _items = new ArrayList(); public Iterator CreateIterator() { return new Iterator(this); } public int Count { get { return _items.Count; } } public object this[int index] { get { return _items[index]; } set { _items.Add(value); } } } //The 'Iterator' interface interface IAbstractIterator { Item First(); Item Next(); bool IsDone { get; } Item CurrentItem { get; } } class Iterator : IAbstractIterator { private Collection _collection; private int _current = 0; private int _step = 1; public Iterator(Collection collection) { this._collection = collection; } public Item First() { _current = 0; return _collection[_current] as Item; } public Item Next() { _current += _step; if (!IsDone) return _collection[_current] as Item; else return null; } public int Step { get { return _step; } set { _step = value; } } public Item CurrentItem { get { return _collection[_current] as Item; } } public bool IsDone // Gets whether iteration is complete { get { return _current &gt;= _collection.Count; } } } } } </p><p>Anonymous said:<br /><div class="typeset"><p>When I converted it to VB.NET it's issue many error.</p></div></p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10817618 2012-02-23T01:25:50-08:00 2012-02-23T01:25:50-08:00 A lot of error <p>Anonymous suggested:<br />using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; namespace Iterator { class Program { static void Main(string[] args) { // Build a collection Collection collection = new Collection(); collection[0] = new Item(&quot;Item A&quot;); collection[1] = new Item(&quot;Item B&quot;); collection[2] = new Item(&quot;Item C&quot;); collection[3] = new Item(&quot;Item D&quot;); collection[4] = new Item(&quot;Item E&quot;); collection[5] = new Item(&quot;Item F&quot;); collection[6] = new Item(&quot;Item G&quot;); collection[7] = new Item(&quot;Item H&quot;); collection[8] = new Item(&quot;Item I&quot;); Iterator iterator = new Iterator(collection); iterator.Step = 2; Console.WriteLine(&quot;Iterating over collection:&quot;); for (Item item = iterator.First(); !iterator.IsDone; item = iterator.Next()) { Console.WriteLine(item.Name); } Console.ReadKey(); } class Item { private string _name; public Item(string name) { this._name = name; } public string Name { get { return _name; } } } //The 'Aggregate' interface interface IAbstractCollection { Iterator CreateIterator(); } class Collection : IAbstractCollection { ArrayList _items = new ArrayList(); public Iterator CreateIterator() { return new Iterator(this); } public int Count { get { return _items.Count; } } public object this[int index] { get { return _items[index]; } set { _items.Add(value); } } } //The 'Iterator' interface interface IAbstractIterator { Item First(); Item Next(); bool IsDone { get; } Item CurrentItem { get; } } class Iterator : IAbstractIterator { private Collection _collection; private int _current = 0; private int _step = 1; public Iterator(Collection collection) { this._collection = collection; } public Item First() { _current = 0; return _collection[_current] as Item; } public Item Next() { _current += _step; if (!IsDone) return _collection[_current] as Item; else return null; } public int Step { get { return _step; } set { _step = value; } } public Item CurrentItem { get { return _collection[_current] as Item; } } public bool IsDone // Gets whether iteration is complete { get { return _current &gt;= _collection.Count; } } } } } </p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10812650 2012-02-22T09:54:11-08:00 2012-02-22T09:54:11-08:00 Trying to convert event handler creation: AddHandler btnSubmit.Click, AddressOd btnSubmit_click [updated] <p>convert event handler creation: AddHandler btnSubmit.Click, AddressOd btnSubmit_click</p><p>Paul. said:<br /><div class="typeset"><p>Should say AddressOf - that's a typo. It still doesn't work.</p></div></p> Paul. tag:feedback.developerfusion.com,2008-02-07:Event/10812646 2012-02-22T09:53:26-08:00 2012-02-22T09:53:26-08:00 Trying to convert event handler creation: AddHandler btnSubmit.Click, AddressOd btnSubmit_click <p>Paul. suggested:<br />convert event handler creation: AddHandler btnSubmit.Click, AddressOd btnSubmit_click</p> Paul. tag:feedback.developerfusion.com,2008-02-07:Event/10764067 2012-02-14T22:50:56-08:00 2012-02-14T22:50:56-08:00 put small &quot;like/dislike&quot; button on the sentences that are displayed under signin link on top corner <p>Anonymous suggested:<br />put small &quot;like/dislike&quot; button on the sentences that are displayed under signin link on top corner</p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10733515 2012-02-10T05:40:25-08:00 2012-02-10T05:40:25-08:00 uint16 Capabilities[]; <p>Anonymous suggested:<br />Private Capabilites() as uint16</p> Anonymous tag:feedback.developerfusion.com,2008-02-07:Event/10674203 2012-02-02T14:29:44-08:00 2012-02-02T14:29:44-08:00 Dim b(b1.Length + b2.Length - 3) As Byte <p>Mark suggested:<br />VB Dim b(b1.Length + b2.Length - 3) As Byte Converted C# byte[] b = new byte[b1.Length + b2.Length - 2]; Why is it changing my math? I've been using this converter to teach myself C#. Great tool.</p> Mark tag:feedback.developerfusion.com,2008-02-07:Event/10672478 2012-02-02T10:12:38-08:00 2012-02-02T10:12:38-08:00 Cannont convert Nullable property using ? <p>Kyle Schultz suggested:<br />When trying to convert from VB.Net to C# (or vice versa), if you have a nullable property that is created using the ? and not Nullable&lt;&gt; the post back on your page is not ready correctly. Public Property CurrentDate As DateTime? I should be able to pass that and get public DateTime? CurrentDate { get; set; }</p> Kyle Schultz tag:feedback.developerfusion.com,2008-02-07:Event/10653577 2012-01-30T17:55:11-08:00 2012-01-30T17:55:11-08:00 I cannot convert VB.net to C#.net phanny tag:feedback.developerfusion.com,2008-02-07:Event/10565031 2012-01-16T09:49:20-08:00 2012-01-16T09:49:20-08:00 I have a problem converting this code: <p>Gromhelm suggested:<br />public static readonly DependencyProperty ProgressProperty = DependencyProperty.RegisterAttached(&quot;Progress&quot;, typeof(double), typeof(ViewportAnimation), new PropertyMetadata(0.0, new PropertyChangedCallback(delegate(DependencyObject o, DependencyPropertyChangedEventArgs e) { ((ViewportAnimation)o).ProgressChanged(e); }))); VB.Net Converter gives me this: Public Shared ReadOnly ProgressProperty As DependencyProperty = DependencyProperty.RegisterAttached(&quot;Progress&quot;, GetType(Double), GetType(ViewportAnimation), New PropertyMetadata(0.0, New PropertyChangedCallback(Function(o As DependencyObject, e As DependencyPropertyChangedEventArgs) Do DirectCast(o, ViewportAnimation).ProgressChanged(e) End Function))) There seems to be a problem converting the function, but I don't know how to solve it.</p> Gromhelm tag:feedback.developerfusion.com,2008-02-07:Event/10558834 2012-01-15T08:01:16-08:00 2012-01-15T08:01:16-08:00 Service Down [updated] <p>&quot;Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists&quot;.</p><p>tb said:<br /><div class="typeset"><p>I'm getting this message again.</p></div></p> tb tag:feedback.developerfusion.com,2008-02-07:Event/10549360 2012-01-13T06:23:20-08:00 2012-01-13T06:23:20-08:00 LINQ VB.Net -&gt; C# (where clause) <p>Some dude suggested:<br />In this case, the converter doesn't work p.s. this syntaxe is valid in VB.Net From a In ListOfA Select a Where a Is A If we change the Where clause position, just like we do in C# in fact, it works : From a In ListOfA Where a Is A Select a</p> Some dude tag:feedback.developerfusion.com,2008-02-07:Event/10547762 2012-01-12T23:13:00-08:00 2012-01-12T23:13:00-08:00 Convert this to vb <p>imperialx suggested:<br />CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =&gt; { configSetter(ConfigurationManager.AppSettings[configName]); });</p> imperialx tag:feedback.developerfusion.com,2008-02-07:Event/10499975 2012-01-05T03:06:59-08:00 2012-01-05T03:06:59-08:00 C# to VB .Net conversion fails [is now completed] <p>Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists. Trying since last one hour. Still the same.</p> james.crowley tag:feedback.developerfusion.com,2008-02-07:Event/10499974 2012-01-05T03:06:59-08:00 2012-01-05T03:06:59-08:00 C# to VB .Net conversion fails [updated] <p>Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists. Trying since last one hour. Still the same.</p><p>james.crowley (admin) responded:<br /><div class="typeset"><p>This has been fixed now</p></div></p> james.crowley tag:feedback.developerfusion.com,2008-02-07:Event/10499211 2012-01-04T23:14:42-08:00 2012-01-04T23:14:42-08:00 C# to VB .Net conversion fails [updated] <p>Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists. Trying since last one hour. Still the same.</p><p>Pradeep K. said:<br /><div class="typeset"><p>Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists.</p> <p>Trying since last one hour. Still the same.</p></div></p> Pradeep K. tag:feedback.developerfusion.com,2008-02-07:Event/10471303 2011-12-30T06:39:17-08:00 2011-12-30T06:39:17-08:00 Pointers don't get converted properly <p>haiyyu suggested:<br />This line of code: int* a = &amp;b; gets converted into this: Dim a As Pointer(Of Integer) = AddressOfb As you can see, there is a space missing between AddressOf and b.</p> haiyyu tag:feedback.developerfusion.com,2008-02-07:Event/10466050 2011-12-29T05:09:14-08:00 2011-12-29T05:09:14-08:00 when converting string functions to vb it suggests to use string.* wich do not exists <p>Wilfred suggested:<br />When converting the followong vb code to c# it suggests to use strings.mid() function in c# wich appears not to exists. Private Sub stringmid(ByVal str As String) Dim mystr As String mystr = Mid(str, 2) End Sub converts to private void stringmid(string str) { string mystr = null; mystr = Strings.Mid(str, 2); }</p> Wilfred tag:feedback.developerfusion.com,2008-02-07:Event/10454899 2011-12-26T23:05:23-08:00 2011-12-26T23:05:23-08:00 Convert video to Flash on Mac <p>AlexYu suggested:<br />Flash FLV/SWF Web Video Creator Mac can help Customize Flash video, like: select control bar and skin for the flash player, add special effect, preloader template and add image or text, insert clickable URL in flash video, also provides some common editing functions: clip, crop, trim, split, apply effect, set output parameter, merge, join, slide, snapshot, rotate etc on Mac Lion. If you want to convert your Flash SWF video back to common video files, you can turn to SWF Converter for Mac For detailed informaton, please visit http://www.iorgsoft.com/Flash/video-to-flash-web-video-creator-mac.html</p> AlexYu tag:feedback.developerfusion.com,2008-02-07:Event/10434493 2011-12-21T12:40:17-08:00 2011-12-21T12:40:17-08:00 directcast [updated] <p>The c# line converted to DayPilotMonth1.StartDate = (DateTime)e.Data[&quot;start&quot;]; DayPilotMonth1.StartDate = DirectCast(e.Data(&quot;start&quot;), DateTime) give the error Value of type 'DayPilot.Json.JsonData' cannot be converted to 'Date'. Changting this to ctype fixed the problem</p><p>Simon said:<br /><div class="typeset"><p>Thank you</p></div></p> Simon tag:feedback.developerfusion.com,2008-02-07:Event/10410974 2011-12-16T08:36:41-08:00 2011-12-16T08:36:41-08:00 Service Down [is now completed] <p>&quot;Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists&quot;.</p> james.crowley tag:feedback.developerfusion.com,2008-02-07:Event/10410973 2011-12-16T08:36:41-08:00 2011-12-16T08:36:41-08:00 Service Down [updated] <p>&quot;Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists&quot;.</p><p>james.crowley (admin) responded:<br /><div class="typeset"><p>Sorry about that - fixed now</p></div></p> james.crowley tag:feedback.developerfusion.com,2008-02-07:Event/10327915 2011-12-01T01:47:51-08:00 2011-12-01T01:47:51-08:00 Add ability to mark a problem as solved to ease helping devs [updated] <p>I would find it easier if posts were marked as solved so i could concentrate on the ones that were unsolved</p><p>frankqi said:<br /><div class="typeset"><p>PDF Converter Pro for Mac is one of the most powerful and user-friendly PDF conversion tools, which is specially designed for Mac fans to convert PDF source files into Office formats, EPUB, HTML, and Text on Mac OS X. </p> <p><a href="http://www.anymediaeditor.com/pdf-converter-pro-mac.php" rel="nofollow" target="_blank">http://www.anymediaeditor.com/pdf-converter-pro-mac.php</a></p></div></p> frankqi tag:feedback.developerfusion.com,2008-02-07:Event/10327913 2011-12-01T01:47:26-08:00 2011-12-01T01:47:26-08:00 DF works half my work [updated] <p>I am a VB as well as C# dev...... So I need to convert big codes at one to from VB to C# and vice-versa...... So DF is one of my best friends in this work But I found a small bug..... It prints &quot;Strings.Format&quot; while Converting from &quot;String.Format&quot;......So VS is reporting error........</p><p>frankqi said:<br /><div class="typeset"><p>PDF Converter Pro for Mac is one of the most powerful and user-friendly PDF conversion tools, which is specially designed for Mac fans to convert PDF source files into Office formats, EPUB, HTML, and Text on Mac OS X. </p> <p><a href="http://www.anymediaeditor.com/pdf-converter-pro-mac.php" rel="nofollow" target="_blank">http://www.anymediaeditor.com/pdf-converter-pro-mac.php</a></p></div></p> frankqi tag:feedback.developerfusion.com,2008-02-07:Event/10327902 2011-12-01T01:45:00-08:00 2011-12-01T01:45:00-08:00 SWF Converter Mac, Mac SWF Converter, SWF Video Converter for Mac, SWF Converter for Mac [updated] <p>SWF Converter Mac is the unique and professional software designed for Mac users to convert Flash SWF video files to AVI, WMV, MP4, MOV, FLV, MPG, MP3, etc. http://www.swfconverterformac.com</p><p>frankqi said:<br /><div class="typeset"><p>PDF Converter Pro for Mac is one of the most powerful and user-friendly PDF conversion tools, which is specially designed for Mac fans to convert PDF source files into Office formats, EPUB, HTML, and Text on Mac OS X. </p> <p><a href="http://www.anymediaeditor.com/pdf-converter-pro-mac.php" rel="nofollow" target="_blank">http://www.anymediaeditor.com/pdf-converter-pro-mac.php</a></p></div></p> frankqi tag:feedback.developerfusion.com,2008-02-07:Event/10317529 2011-11-29T12:02:08-08:00 2011-11-29T12:02:08-08:00 Convert to VB.net [updated] <p>&lt;script language=&quot;javascript&quot;&gt; function openPopup(strOpen) { open(strOpen, &quot;Info&quot;, &quot;status=1, width=300, height=200, top=100, left=300&quot;); } &lt;/script&gt; This won't convert to vb.net</p><p>Jessica C said:<br /><div class="typeset"><p>error: line 1 col 1: EOF expected</p></div></p> Jessica C tag:feedback.developerfusion.com,2008-02-07:Event/10317521 2011-11-29T12:01:38-08:00 2011-11-29T12:01:38-08:00 Convert to VB.net <p>Jessica C suggested:<br />&lt;script language=&quot;javascript&quot;&gt; function openPopup(strOpen) { open(strOpen, &quot;Info&quot;, &quot;status=1, width=300, height=200, top=100, left=300&quot;); } &lt;/script&gt; This won't convert to vb.net</p> Jessica C tag:feedback.developerfusion.com,2008-02-07:Event/10281827 2011-11-23T05:20:56-08:00 2011-11-23T05:20:56-08:00 BitWise operations <p>NicoJuice suggested:<br />public bool IsInRole(Role role) { Role userRole = (Role)this.Role; return ((userRole &amp; role) == role); } [Flags] public enum Role { Student = 1, // 0001 Employer = 2, // 0010 Staff = 4, // 0100 Admin = 8 // 1000 }</p> NicoJuice tag:feedback.developerfusion.com,2008-02-07:Event/10240057 2011-11-16T08:22:17-08:00 2011-11-16T08:22:17-08:00 Function declaration doesn't convert [updated] <p>The following returns an error: &quot;-- line 1 col 1: EOF expected&quot; - Why would an EOF be expected at the beginning of the code to be translated??? Here is the code: Function xmlAddElement(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs, ByVal strID As String, ByVal strErrType As String) As XElement</p><p>james.crowley (admin) responded:<br /><div class="typeset"><p>Hey - try adding an End Function to the code - that should do the trick.</p></div></p> james.crowley tag:feedback.developerfusion.com,2008-02-07:Event/10233043 2011-11-15T09:28:17-08:00 2011-11-15T09:28:17-08:00 Function declaration doesn't convert <p>Fletcher suggested:<br />The following returns an error: &quot;-- line 1 col 1: EOF expected&quot; - Why would an EOF be expected at the beginning of the code to be translated??? Here is the code: Function xmlAddElement(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs, ByVal strID As String, ByVal strErrType As String) As XElement</p> Fletcher