Main
Main
10 Aug 2019, 10:32
I'm a confused newbie.
Using FxPro cTrader 3.5 "Edit in Visual Studio" command. Then building the code in Visual Studio gives me the following error:
Severity Code Description Project File Line Suppression State
Error Program 'c:\Users\corin\Documents\cAlgo\Sources\Robots\B-Orderly\B-Orderly\bin\Debug\B-Orderly.exe' does not contain a static 'Main' method suitable for an entry point B-Orderly 0
What am I doing wrong?
Replies
basil
13 Aug 2019, 22:57
( Updated at: 21 Dec 2023, 09:21 )
Hi Panagioti
It does the same no matter what code I use. For example this is what I get when trying to build the Sample Martingale cBot which came with FxPro cTrader 3.5 Error CS5001: Program 'c:\Users\corin\Documents\cAlgo\Sources\Robots\Sample Martingale cBot\Sample Martingale cBot\bin\Debug\Sample Martingale cBot.exe' does not contain a static 'Main' method suitable for an entry point. The same error whether I build from within cTrader or Visual Studio. Interestingly, no errors in cTrader until I installed Visual Studio.Now both produce the same error.
Here is a screen shot of the About, Visual Studio:
Does it maybe have something to do with the operating system? I am using Windows 10 Home.
@basil
PanagiotisCharalampous
12 Aug 2019, 09:19
Hi basil,
Thanks for posting in our forum. To be able to help you, we need more information. As a start, can you post the cBot code you are using?
Best Regards,
Panagiotis
@PanagiotisCharalampous