Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
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