tag:feedback.developerfusion.com,2008-02-07:/activityDeveloper Fusion on UserVoice2012-05-11T15:43:58-07:00tag:feedback.developerfusion.com,2008-02-07:Event/113334692012-05-11T15:43:58-07:002012-05-11T15:43:58-07:00Correct a mistake on the "Write for us" page<p>Anonymous suggested:<br />I recently read the "Write for us" page and found a little mistake in the first paragraph of "What Can I Write About?" where it says "[...] be they desktop developers, web wranglers or mobile mavens, working with .NET, Ruby, PHP, Android, iOS, Windows, Android or Linux.". Android is mentioned twice.</p>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/112780202012-05-03T00:28:10-07:002012-05-03T00:28:10-07:00Submitting 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>Aphillippetag:feedback.developerfusion.com,2008-02-07:Event/112713302012-05-02T06:05:44-07:002012-05-02T06:05:44-07:00LinQ Queries<p>Mazin Scott suggested:<br />In LinQ conversions, specifically from C# to VB.Net, it doesn't add "SELECT" even if its specified in the expression.</p>Mazin Scotttag:feedback.developerfusion.com,2008-02-07:Event/112149552012-04-23T10:33:25-07:002012-04-23T10:33:25-07:00I 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<Paragraph>();
foreach (Paragraph para in paragraphs)
{
//t we export paragraphs as <p> tags
text.Append(“<p>”);
foreach (Run r in para.Elements<Run>())
{
if (r.RunProperties != null)
{
//t ADD OPENNING TAGS HERE, if any
if (r.RunProperties.Bold != null)
text.Append(“<b>”);
if (r.RunProperties.Italic != null)
text.Append(“<i>”);
if (r.RunProperties.Underline != null)
text.Append(“<u>”);
if (r.RunProperties.Color != null && r.RunProperties.Color.Val != null)
text.Append(“<span style=”color:#” + r.RunProperties.Color.Val + “”>”);
//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 && r.RunProperties.Color.Val != null)
text.Append(“</span>”);
if (r.RunProperties.Underline != null)
text.Append(“</u>”);
if (r.RunProperties.Italic != null)
text.Append(“</i>”);
if (r.RunProperties.Bold != null)
text.Append(“</b>”);
}
else
{
text.Append(r.InnerText);
}
}
text.Append(“</p>”);
}
text.AppendLine(“ </body>”);
text.AppendLine(“</html>”);
_showTextTB.Text = text.ToString();
</p>Ben Watersontag:feedback.developerfusion.com,2008-02-07:Event/112053942012-04-21T12:46:13-07:002012-04-21T12:46:13-07:00We keep getting this / vb to c# -->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# -->Sorry, the service appears to be down at the moment. Please try again later </p>Michaeltag:feedback.developerfusion.com,2008-02-07:Event/111930002012-04-19T10:48:59-07:002012-04-19T10:48:59-07:00z = 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>dave398tag:feedback.developerfusion.com,2008-02-07:Event/111918682012-04-19T08:10:24-07:002012-04-19T08:10:24-07:00mid 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 = "The dog jumps"
' Returns "The fox jumps".
Mid(TestString, 5, 3) = "fox"
' Returns "The cow jumps".
Mid(TestString, 5) = "cow"
' Returns "The cow jumpe".
Mid(TestString, 5) = "cow jumped over"
' Returns "The duc jumpe".
Mid(TestString, 5, 3) = "duck"
As explained there: http://www.vbforums.com/showpost.php?s=17e8fcab432e62648b66b024dd59572e&p=2583241&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 = "The dog jumps";
// Returns "The fox jumps".
MidStatement(ref TestString, 5, 3, "fox");
// Returns "The cow jumps".
MidStatement(ref TestString, 5, "cow");
// Returns "The cow jumpe".
MidStatement(ref TestString, 5, "cow jumped over");
// Returns "The duc jumpe".
MidStatement(ref TestString, 5, 3, "duck");
with the automatic insertion of a static MidStatement method in the class containing the statements.</p>gauthiertag:feedback.developerfusion.com,2008-02-07:Event/111748002012-04-17T07:07:41-07:002012-04-17T07:07:41-07:00Thanks for such a great site ... your conversion from C# to VB.NET and vice-versa is AWESOME !!!!Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/111228862012-04-09T10:19:05-07:002012-04-09T10:19:05-07:00async/await C# keywords gives EOF<p>Morten Nielsen suggested:<br />Please add support for async/await. Example:
var result = await foo.GetAsync();</p>Morten Nielsentag:feedback.developerfusion.com,2008-02-07:Event/111050802012-04-06T02:19:27-07:002012-04-06T02:19:27-07:00Write About Video Files & 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 Btag:feedback.developerfusion.com,2008-02-07:Event/110693182012-03-31T21:34:52-07:002012-03-31T21:34:52-07:00logical NOT moved into string comparison<p>Greg Nash suggested:<br />If value Like "*#.*#" And Not value Like "*[!0-9.:]*" Then
becomes
if (StringType.StrLike(value, "*#.*#", CompareMethod.Binary) && StringType.StrLike(! (value), "*[!0-9.:]*", CompareMethod.Binary)));
The NOT should apply to the LIKE result, not to the string.
Also note the semicolon on the end.</p>Greg Nashtag:feedback.developerfusion.com,2008-02-07:Event/110566842012-03-29T11:21:49-07:002012-03-29T11:21:49-07:00C# to VB.Net - API Calls Don't Convert Properly<p>HK suggested:<br /> [DllImport("user32.dll")]
public static extern IntPtr GetWindowRect(IntPtr hWnd,ref RECT rect);
Should convert to:
Public Declare Function GetWindowRect Lib "user32.dll" (ByVal hWnd As IntPtr, ByRef rect As RECT) As IntPtr</p>HKtag:feedback.developerfusion.com,2008-02-07:Event/110507592012-03-28T14:53:49-07:002012-03-28T14:53:49-07:00Converter 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& ConvertedSource, String& 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& ConvertedSource, String& 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& ConvertedCode, String& 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 Balltag:feedback.developerfusion.com,2008-02-07:Event/109885422012-03-19T08:01:50-07:002012-03-19T08:01:50-07:00C#.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>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/109522832012-03-13T20:35:46-07:002012-03-13T20:35:46-07:00Object.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 Evanstag:feedback.developerfusion.com,2008-02-07:Event/108995752012-03-06T07:59:40-08:002012-03-06T07:59:40-08:00Converted Now to DateAndTime.Now instead of DateTime.Now<p>Anonymous suggested:<br />VB.Net
Console.WriteLine(Now)
C#
Console.WriteLine(DateTIme.Now);</p>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/108755652012-03-02T07:51:24-08:002012-03-02T07:51:24-08:00Func(OF T1, result) [updated]<p>EnumerableDataRowList<DataRow> is a class i made
EnumerableDataRowList<DataRow> enumerableRowCollection = new EnumerableDataRowList<DataRow>(Table.Rows);
enumerableRowCollection.sortColumns = new String[] { "Name" };
//this line below requests a parameter in VB
Func<DataRow, String> 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>Hansontag:feedback.developerfusion.com,2008-02-07:Event/108755502012-03-02T07:49:00-08:002012-03-02T07:49:00-08:00Func(OF T1, result)<p>Hanson suggested:<br />EnumerableDataRowList<DataRow> is a class i made
EnumerableDataRowList<DataRow> enumerableRowCollection = new EnumerableDataRowList<DataRow>(Table.Rows);
enumerableRowCollection.sortColumns = new String[] { "Name" };
//this line below requests a parameter in VB
Func<DataRow, String> groupingFunction = enumerableRowCollection.GroupData;</p>Hansontag:feedback.developerfusion.com,2008-02-07:Event/108654602012-03-01T05:49:18-08:002012-03-01T05:49:18-08:00System.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>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/108427612012-02-27T04:55:15-08:002012-02-27T04:55:15-08:00When converting a VB.NET project to C#, the MSBuild targets aren't changed: <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets<p>BobTLO suggested:<br />Bulk conversion of an entire project doesn't change the MSBuild targets to CSharp.</p>BobTLOtag:feedback.developerfusion.com,2008-02-07:Event/108176252012-02-23T01:27:00-08:002012-02-23T01:27:00-08:00A 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("Item A");
collection[1] = new Item("Item B");
collection[2] = new Item("Item C");
collection[3] = new Item("Item D");
collection[4] = new Item("Item E");
collection[5] = new Item("Item F");
collection[6] = new Item("Item G");
collection[7] = new Item("Item H");
collection[8] = new Item("Item I");
Iterator iterator = new Iterator(collection);
iterator.Step = 2;
Console.WriteLine("Iterating over collection:");
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 >= _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>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/108176182012-02-23T01:25:50-08:002012-02-23T01:25:50-08:00A 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("Item A");
collection[1] = new Item("Item B");
collection[2] = new Item("Item C");
collection[3] = new Item("Item D");
collection[4] = new Item("Item E");
collection[5] = new Item("Item F");
collection[6] = new Item("Item G");
collection[7] = new Item("Item H");
collection[8] = new Item("Item I");
Iterator iterator = new Iterator(collection);
iterator.Step = 2;
Console.WriteLine("Iterating over collection:");
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 >= _collection.Count; }
}
}
}
}
</p>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/108126502012-02-22T09:54:11-08:002012-02-22T09:54:11-08:00Trying 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/108126462012-02-22T09:53:26-08:002012-02-22T09:53:26-08:00Trying 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/107640672012-02-14T22:50:56-08:002012-02-14T22:50:56-08:00put small "like/dislike" button on the sentences that are displayed under signin link on top corner<p>Anonymous suggested:<br />put small "like/dislike" button on the sentences that are displayed under signin link on top corner</p>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/107335152012-02-10T05:40:25-08:002012-02-10T05:40:25-08:00uint16 Capabilities[];<p>Anonymous suggested:<br />Private Capabilites() as uint16</p>Anonymoustag:feedback.developerfusion.com,2008-02-07:Event/106742032012-02-02T14:29:44-08:002012-02-02T14:29:44-08:00Dim 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>Marktag:feedback.developerfusion.com,2008-02-07:Event/106724782012-02-02T10:12:38-08:002012-02-02T10:12:38-08:00Cannont 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<> 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 Schultztag:feedback.developerfusion.com,2008-02-07:Event/106535772012-01-30T17:55:11-08:002012-01-30T17:55:11-08:00I cannot convert VB.net to C#.netphannytag:feedback.developerfusion.com,2008-02-07:Event/105650312012-01-16T09:49:20-08:002012-01-16T09:49:20-08:00I have a problem converting this code:<p>Gromhelm suggested:<br />public static readonly DependencyProperty ProgressProperty = DependencyProperty.RegisterAttached("Progress", 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("Progress", 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>Gromhelmtag:feedback.developerfusion.com,2008-02-07:Event/105588342012-01-15T08:01:16-08:002012-01-15T08:01:16-08:00Service Down [updated]<p>"Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists".</p><p>tb said:<br /><div class="typeset"><p>I'm getting this message again.</p></div></p>tbtag:feedback.developerfusion.com,2008-02-07:Event/105493602012-01-13T06:23:20-08:002012-01-13T06:23:20-08:00LINQ VB.Net -> 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 dudetag:feedback.developerfusion.com,2008-02-07:Event/105477622012-01-12T23:13:00-08:002012-01-12T23:13:00-08:00Convert this to vb<p>imperialx suggested:<br />CloudStorageAccount.SetConfigurationSettingPublisher((configName, configSetter) =>
{
configSetter(ConfigurationManager.AppSettings[configName]);
});</p>imperialxtag:feedback.developerfusion.com,2008-02-07:Event/104999752012-01-05T03:06:59-08:002012-01-05T03:06:59-08:00C# 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.crowleytag:feedback.developerfusion.com,2008-02-07:Event/104999742012-01-05T03:06:59-08:002012-01-05T03:06:59-08:00C# 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.crowleytag:feedback.developerfusion.com,2008-02-07:Event/104992112012-01-04T23:14:42-08:002012-01-04T23:14:42-08:00C# 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/104713032011-12-30T06:39:17-08:002011-12-30T06:39:17-08:00Pointers don't get converted properly<p>haiyyu suggested:<br />This line of code:
int* a = &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>haiyyutag:feedback.developerfusion.com,2008-02-07:Event/104660502011-12-29T05:09:14-08:002011-12-29T05:09:14-08:00when 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>Wilfredtag:feedback.developerfusion.com,2008-02-07:Event/104548992011-12-26T23:05:23-08:002011-12-26T23:05:23-08:00Convert 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>AlexYutag:feedback.developerfusion.com,2008-02-07:Event/104344932011-12-21T12:40:17-08:002011-12-21T12:40:17-08:00directcast [updated]<p>The c# line converted to
DayPilotMonth1.StartDate = (DateTime)e.Data["start"];
DayPilotMonth1.StartDate = DirectCast(e.Data("start"), 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>Simontag:feedback.developerfusion.com,2008-02-07:Event/104109742011-12-16T08:36:41-08:002011-12-16T08:36:41-08:00Service Down [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".</p>james.crowleytag:feedback.developerfusion.com,2008-02-07:Event/104109732011-12-16T08:36:41-08:002011-12-16T08:36:41-08:00Service Down [updated]<p>"Sorry, the service appears to be down at the moment. Please try again later - or contact us if the problem persists".</p><p>james.crowley (admin) responded:<br /><div class="typeset"><p>Sorry about that - fixed now</p></div></p>james.crowleytag:feedback.developerfusion.com,2008-02-07:Event/103279152011-12-01T01:47:51-08:002011-12-01T01:47:51-08:00Add 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>frankqitag:feedback.developerfusion.com,2008-02-07:Event/103279132011-12-01T01:47:26-08:002011-12-01T01:47:26-08:00DF 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 "Strings.Format" while Converting from "String.Format"......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>frankqitag:feedback.developerfusion.com,2008-02-07:Event/103279022011-12-01T01:45:00-08:002011-12-01T01:45:00-08:00SWF 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>frankqitag:feedback.developerfusion.com,2008-02-07:Event/103175292011-11-29T12:02:08-08:002011-11-29T12:02:08-08:00Convert to VB.net [updated]<p><script language="javascript">
function openPopup(strOpen)
{
open(strOpen, "Info",
"status=1, width=300, height=200, top=100, left=300");
}
</script>
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 Ctag:feedback.developerfusion.com,2008-02-07:Event/103175212011-11-29T12:01:38-08:002011-11-29T12:01:38-08:00Convert to VB.net<p>Jessica C suggested:<br /><script language="javascript">
function openPopup(strOpen)
{
open(strOpen, "Info",
"status=1, width=300, height=200, top=100, left=300");
}
</script>
This won't convert to vb.net</p>Jessica Ctag:feedback.developerfusion.com,2008-02-07:Event/102818272011-11-23T05:20:56-08:002011-11-23T05:20:56-08:00BitWise operations<p>NicoJuice suggested:<br />public bool IsInRole(Role role) {
Role userRole = (Role)this.Role;
return ((userRole & role) == role);
}
[Flags]
public enum Role {
Student = 1, // 0001
Employer = 2, // 0010
Staff = 4, // 0100
Admin = 8 // 1000
}</p>NicoJuicetag:feedback.developerfusion.com,2008-02-07:Event/102400572011-11-16T08:22:17-08:002011-11-16T08:22:17-08:00Function declaration doesn't convert [updated]<p>The following returns an error:
"-- line 1 col 1: EOF expected" - 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.crowleytag:feedback.developerfusion.com,2008-02-07:Event/102330432011-11-15T09:28:17-08:002011-11-15T09:28:17-08:00Function declaration doesn't convert<p>Fletcher suggested:<br />The following returns an error:
"-- line 1 col 1: EOF expected" - 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