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
These users thanked the author riverTrader for the post (total 6):
TJTIKITRADERJoshMStan BokovDRCMLaurentius

User avatar
TJ
Posts: 6521
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 957 times
Been thanked: 1883 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
These users thanked the author TJ for the post:
Laurentius

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: 620
Joined: 09 Apr 2010
Location: Colorado
Has thanked: 388 times
Been thanked: 227 times
Contact:

Re: VB or C#

Postby sptrader » 06 Aug 2012

pivot wrote: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
These users thanked the author sptrader for the post:
Laurentius

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
8-7-2012 3-02-35 PM.png (20.16 KiB) Viewed 1586 times

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

Re: VB or C#

Postby Dru » 07 Aug 2012

pivot wrote: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: 287
Joined: 21 May 2009
Has thanked: 68 times
Been thanked: 19 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: 170 times

Re: Use of Lambda object?

Postby Dru » 08 Aug 2012

Emmanuel wrote: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)
These users thanked the author Dru for the post (total 4):
TJEmmanuelDave MasalovStan Bokov

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?
These users thanked the author ALC for the post:
admin

User avatar
Henry MultiСharts
Posts: 8383
Joined: 25 Aug 2011
Has thanked: 1200 times
Been thanked: 2679 times

Re: VB or C#

Postby Henry MultiСharts » 08 Aug 2012

ALC wrote: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: 287
Joined: 21 May 2009
Has thanked: 68 times
Been thanked: 19 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

sptrader wrote: 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

Laurentius wrote: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

bluejack wrote:
Laurentius wrote: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/viewtopic.php?f=19&t=10704. At least in RiverTrader's opinion ;) (see post #3)
These users thanked the author Laurentius for the post:
TJ

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.
These users thanked the author bluejack for the post (total 2):
TJLaurentius


Return to “MultiCharts .NET”