VB or C#

Questions about MultiCharts .NET and user contributed studies.
riverTrader
Posts: 64
Joined: 15 Aug 2011
Has thanked: 3 times
Been thanked: 50 times

VB or C#

Postby riverTrader » 04 Aug 2012

For any of you new to .Net please do yourself the favor of not starting out with VB.net and instead go directly to C#. VB has lots of legacy fans, but more and more C# is the language being used by even the most casual .net developers.

Also, mc.net is written in C# as are all of the built-in functions and indicators, so starting off in C# gives you lots of example code to work with to develop your indicators/applications.

RiverTrader

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: VB or C#

Postby TJ » 04 Aug 2012

Thanks for the tips. It is good to know.



For your learning enjoyment...

here is a comparison of VB and C#
http://www.harding.edu/fmccown/vbnet_cs ... rison.html


thanks to tikitrader for the link

User avatar
pivot
Posts: 29
Joined: 07 Dec 2009
Been thanked: 2 times

Re: VB or C#

Postby pivot » 06 Aug 2012

Can I use the MS Visual Studio 2010 C# Express - or will I need to buy the full VS 2010?

thxs

P

sptrader
Posts: 742
Joined: 09 Apr 2010
Location: Texas
Has thanked: 483 times
Been thanked: 274 times
Contact:

Re: VB or C#

Postby sptrader » 06 Aug 2012

Can I use the MS Visual Studio 2010 C# Express - or will I need to buy the full VS 2010?

thxs

P
***************************************************************************
FREE VS tools, VB Express or C# Express
http://www.microsoft.com/visualstudio/e ... ns/express

User avatar
pivot
Posts: 29
Joined: 07 Dec 2009
Been thanked: 2 times

Re: VB or C#

Postby pivot » 07 Aug 2012

Great Thxs SPtrader

I get this error every time I try to load study or a signal in VS 2010 C#

Image
Attachments
8-7-2012 3-02-35 PM.png
(20.16 KiB) Downloaded 3135 times

Dru
Posts: 107
Joined: 28 Aug 2007
Has thanked: 4 times
Been thanked: 171 times

Re: VB or C#

Postby Dru » 07 Aug 2012

Great Thxs SPtrader
I get this error every time I try to load study or a signal in VS 2010 C#
Install this or unload vb project from solution (don't delete just unload)

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: Use of Lambda object?

Postby Emmanuel » 07 Aug 2012

Hi ,

How can we translate

m_averagefc1.length = new Lambda<Int32>(delegate { return length; });

in VB ?

Emmanuel

Dru
Posts: 107
Joined: 28 Aug 2007
Has thanked: 4 times
Been thanked: 171 times

Re: Use of Lambda object?

Postby Dru » 08 Aug 2012

How can we translate
m_averagefc1.length = new Lambda<Int32>(delegate { return length; });
in VB ?
MSDN

Code: Select all

m_averagefc1.length = New Lambda(Of Integer)( Function() length)

ALC
Posts: 25
Joined: 13 May 2011
Has thanked: 8 times
Been thanked: 3 times

Re: VB or C#

Postby ALC » 08 Aug 2012

Why seems to be impossible to evaluate ANY expression during the debug in vb.net, while it works well in C#?

This is the procedure I have followed:
-Open the study in VS 2010
-Set a brakpoint on the code
-Attach to the Multicharts process
-Reload the chart with the study applied

Well the breakpoint is working, BUT Is impossible to evaluate ANY expression/variable.
Am I doing something wrong?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: VB or C#

Postby Henry MultiСharts » 08 Aug 2012

Why seems to be impossible to evaluate ANY expression during the debug in vb.net, while it works well in C#?

This is the procedure I have followed:
-Open the study in VS 2010
-Set a brakpoint on the code
-Attach to the Multicharts process
-Reload the chart with the study applied

Well the breakpoint is working, BUT Is impossible to evaluate ANY expression/variable.
Am I doing something wrong?
ALC, this issue has been confirmed in the other thread. It will be fixed in one of the future versions of MultiCharts .Net

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: VB or C#

Postby Emmanuel » 08 Aug 2012

Hi,

Thank you DRU !!!!!!!

Emmanuel

User avatar
Laurentius
Posts: 90
Joined: 01 Jan 2011
Location: Europe
Has thanked: 138 times
Been thanked: 36 times

Re: VB or C#

Postby Laurentius » 10 Aug 2012

FREE VS tools, VB Express or C# Express
http://www.microsoft.com/visualstudio/e ... ns/express
I checked out to see if there was any newer versions of C# Express and found version 2010.

http://www.microsoft.com/visualstudio/e ... ns/express

Is there a special reason for recommending version 2008, or is it okay to use version 2010 as well?

Thanks,
Laurentius

bluejack
Posts: 42
Joined: 02 Aug 2012
Has thanked: 25 times
Been thanked: 27 times

Re: VB or C#

Postby bluejack » 10 Aug 2012

Is there a special reason for recommending version 2008, or is it okay to use version 2010 as well?
Where was VS2008 recommended? VS2010 is the way to go.

User avatar
Laurentius
Posts: 90
Joined: 01 Jan 2011
Location: Europe
Has thanked: 138 times
Been thanked: 36 times

Re: VB or C#

Postby Laurentius » 10 Aug 2012

Is there a special reason for recommending version 2008, or is it okay to use version 2010 as well?
Where was VS2008 recommended? VS2010 is the way to go.
Ok. Found an answer in this thread http://www.multicharts.com/discussion/v ... 19&t=10704. At least in RiverTrader's opinion ;) (see post #3)

bluejack
Posts: 42
Joined: 02 Aug 2012
Has thanked: 25 times
Been thanked: 27 times

Re: VB or C#

Postby bluejack » 11 Aug 2012

I use VS2010 + Resharper all the time and have no problems with it. Performance is ok for me and I edited already files with 5k+ line code with it. Far from what we will have here. Just my opinion.


Return to “MultiCharts .NET”