Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (VoroneTZ, monk12, Quad), 829 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
#include "live\mpReRv1100.c" does not work #483289
05/16/21 13:05
05/16/21 13:05
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Hi,
#1
in zorrofix.ini I set:
StrategyFolder = "‪F:\OneDrive\ZorroStrategy\"
Correctly Zorro look into that dir for script at launch time.

In the script I use:
#include "live\mpReRv1100.c"

I expect that Zorro for the script in ‪F:\OneDrive\ZorroStrategy\live\ directory, but that's not the case.
If I am wrong please explain it. In the second case is a bug.

#2
Another weird behavior is that if you set StrategyFolder = "‪F:\OneDrive\ZorroStrategy", without the final slash the path is set to the parent directory F:\OnedDrive. That'3 not the case using the set HistoryFolder

#3
if set StrategyFolder to a different location and try to create a new script from zorroconsole, you get the message shown in the pic attacched
Thank You



Attached Files 2021-05-16 15_26_46-zorro.chm - ExtraChm - NOT REGISTERED.png
Last edited by MatPed; 05/16/21 13:31.
Re: #include "live\mpReRv1100.c" does not work [Re: MatPed] #483292
05/16/21 14:59
05/16/21 14:59
Joined: Feb 2017
Posts: 1,718
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,718
Chicago
In C, the backslash ‘\’ is an escape. To indicate a backslash in a string, you need two backslashes, like this: ‘\\’

So everywhere where you have a single backslash, you in fact need two backslashes.

Re: #include "live\mpReRv1100.c" does not work [Re: MatPed] #483293
05/17/21 06:50
05/17/21 06:50
Joined: Jul 2000
Posts: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
Frankfurt
In fact there is an exception: escapes are used for string constants, but not for precompiler statements. Don't ask me why. It's a C convention.

In Zorro 2.37 the precompiler knows the StrategyFolder, but not in earlier versions. If in doubt, always use absolute paths.

Re: #include "live\mpReRv1100.c" does not work [Re: jcl] #483299
05/17/21 11:23
05/17/21 11:23
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline OP
User
MatPed  Offline OP
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
Originally Posted by jcl

In Zorro 2.37 the precompiler knows the StrategyFolder, but not in earlier versions. If in doubt, always use absolute paths.


Absolute path is not my desired solution, I am using 2.35.8. I will give a look at 2.37. Thank You


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1