Gamestudio Links
Zorro Links
Newest Posts
Bug in the beta version
by jcl. 09/26/22 08:20
Renko bar and free version of Zorro
by jcl. 09/26/22 08:18
Multicurrency Currency Strength
by JJ95. 09/22/22 18:39
Interactive brokers demo trade test
by AndrewAMD. 09/22/22 17:14
Check Lookback on a per-asset basis
by AndrewAMD. 09/22/22 13:41
How's 3DGS in 2022?
by Cyndanera. 09/22/22 01:01
Avira antivirus alert with Zorro
by jcl. 09/21/22 16:09
AUM Magazine
Latest Screens
DEAD TASTE
Tactics of World War I
Hecknex World
Scheherazade's Journey
Who's Online Now
5 registered members (Quad, AndrewAMD, ozgur, Petra, 1 invisible), 390 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lianhuaahua, sereinsand, Cyndanera, Atila_Firmino, mircomm
18847 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: New Zorro version 2.50 [Re: hast29] #486358
08/05/22 14:01
08/05/22 14:01
Joined: Feb 2017
Posts: 1,554
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,554
Chicago
Originally Posted by hast29
Also, is there any benefit from 64bit architecture ? I am just training and testing own scripts, writen directly in Zorro "simple C".
Quote
Using C++ as script language has many advantages. Additional development tools, such as the Visual Studio debugger and profiler, are available. External libraries, such as Boost, can be integrated without a wrapper. The 64-bit mode can access more memory for backtests. All lite-C functions and all system variables can still be used, but additionally you have C++ classes and templates at your disposal. Error handling is more strict and you'll get warnings about bad code style. The VC++ compiler is a bit slower than the lite-C on-the-fly compiler, but is only invoked when the script was changed. The resulting code runs equally fast or - in 64 bit mode - even faster. The only disadvantage is that you have to download and install Microsoft Visual Studio™ 2017 or above.
https://zorro-project.com/manual/en/dlls.htm

Re: New Zorro version 2.50 [Re: hast29] #486359
08/05/22 14:26
08/05/22 14:26
Joined: Jul 2000
Posts: 27,892
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,892
Frankfurt
Originally Posted by hast29
Do I understand you properly, if I install the 64bit MS Visual Studio in the computer, the problem will be solved ? MS Visual Studio is now free, so this is for me no extra costs option.

You will need Visual Studio for programming in C++, but not for merely running Zorro. The VC++ runtime would solve your problem. But we prefer no runtime installation for the 32 bit version, so we want to include the dlls directly. We had not had a PC so far where the 32 bit version would require a runtime. What's your Windows version?




Re: New Zorro version 2.50 [Re: jcl] #486360
08/05/22 17:20
08/05/22 17:20
Joined: Mar 2018
Posts: 55
hast29 Offline
Junior Member
hast29  Offline
Junior Member

Joined: Mar 2018
Posts: 55
Win 10 Home, 21H1, 64-bit

Re: New Zorro version 2.50 [Re: jcl] #486361
08/06/22 07:50
08/06/22 07:50
Joined: Jul 2000
Posts: 27,892
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,892
Frankfurt
Ok. Unpack FXCM.zip into the Zorro folder. The FXCM API is a 32 bit VC application and should thus enable your PC to also run the 32 bit Zorro without VC runtime, no matter what DLL was missing before. Let me know if this works.

For 64 bit you'll need the VC runtime in any case.

Re: New Zorro version 2.50 [Re: jcl] #486362
08/07/22 10:00
08/07/22 10:00
Joined: Jul 2022
Posts: 3
M
mun Offline
Guest
mun  Offline
Guest
M

Joined: Jul 2022
Posts: 3
Hi guys. I migrated my lite-C script to C++ to test the new feature "C++ scripts now start directly, like .c scripts (Zorro S and Visual Studio required). "

I found it only works when the script name is different. For example if you have script names:

Test1.c
Test1.cpp

and you click Test on Zorro64 for Test1 it will print "Test1" but it won't compile it; it just does nothing. The documentation states:

"If you have a mix of lite-C and C++ scripts, you can add a '+' to a .cpp script name for marking it in the scrollbox"

I tried this to name it Test1+.cpp and it compiled and ran as expected. Would it be possible to tighten the documentation wording a bit to say it must have different names if using a mix of lite-C and C++ files, or give some error message to indicate needing a different script name when trying to run it in Zorro64?

EDIT: I then tried creating the DLL directly from Visual Studio. When building it as Test1+.dll I get the same issue - Zorro64 prints "Test1+" then does nothing. However when I change the output dll name to Test1+64.dll then Zorro64 uses it correctly. But suffixing the 64 on the dll name is not mentioned in the help pages, I just figured it out from the way Zorro was building the included MyStrategy+.cpp

Last edited by mun; 08/07/22 13:05.
Re: New Zorro version 2.50 [Re: jcl] #486363
08/08/22 07:29
08/08/22 07:29
Joined: Jul 2000
Posts: 27,892
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,892
Frankfurt
You need indeed different names for different scripts, otherwise .c will override .cpp. This will be mentioned more clearly in the manual.

"64" has no meaning in a script name. If you compiled a script with 32 bit, you must run it with 32 bit. You cannot run a 32 bit dll with a 64 bit program. It will simply not load.

Re: New Zorro version 2.50 [Re: jcl] #486388
08/09/22 15:50
08/09/22 15:50
Joined: Mar 2018
Posts: 55
hast29 Offline
Junior Member
hast29  Offline
Junior Member

Joined: Mar 2018
Posts: 55
Hi jcl, yes unpacking FXCM.zip solved the issue for the 32-bit. Zorro 2.50.2 starts and runs OK now, on my desktop computer.

I will not yet use the 64-bit Version and the C++ coding. Perhaps later.The advantages mentioned by AndrewAMD could be of a good use for me, when I progress more with my programming skills.

I am all set now with the new 2.50.2, thank you for the support.

Re: New Zorro version 2.50 [Re: jcl] #486685
09/17/22 13:29
09/17/22 13:29
Joined: Dec 2019
Posts: 39
ozgur Online
Newbie
ozgur  Online
Newbie

Joined: Dec 2019
Posts: 39
A small bug: when a dialog opens after clicking "[Change Folder]" in Zorro64, cpp files aren't shown.

Re: New Zorro version 2.50 [Re: jcl] #486698
09/19/22 13:42
09/19/22 13:42
Joined: Jul 2000
Posts: 27,892
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,892
Frankfurt
Thanks, this should be fixed in the new beta version.

Page 2 of 2 1 2

Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1