Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
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
1 registered members (1 invisible), 672 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
Page 1 of 3 1 2 3
New Zorro version 2.50 #486263
07/08/22 09:03
07/08/22 09:03
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Zorro 2.50 is now available on https://zorro-project.com/download.php

List of new features: https://manual.zorro-project.com/new.htm

This release candidate will become the official release when no bugs are found in the next time. Please test everything and report any issues here! As usual, if you're the first one to find a new and serious bug in the release candidate, you can get a free Zorro S subscription or support extension. This time the chance is particularly good because we switched to a new compiler and to new versions of many libraries.

Re: New Zorro version 2.50 [Re: jcl] #486307
07/25/22 13:47
07/25/22 13:47
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
New version: 2.50.1, same link

Fixes: advise() produced sometimes a different result in 64 bit, and profile.c contained a duplicate variable definition.

Re: New Zorro version 2.50 [Re: jcl] #486308
07/26/22 10:29
07/26/22 10:29
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Version 2.50.2.

2.50.1 still had a bug.

Re: New Zorro version 2.50 [Re: jcl] #486311
07/28/22 01:25
07/28/22 01:25
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
In the zorro.h headers, these functions overloads are defined:
Code
inline char* ifelse(BOOL c,char* a,char* b) { return ifelse2(c,a,b); }
inline char* ifelse(BOOL c,const char* a,const char* b) { return ifelse2(c,(char*)a,(char*)b); }

I had a situation where I was overloading with (BOOL, char*, const char*), so this was an ambiguity error. Either the char* overload should be removed, or two variations with (BOOL, const char*, char*) and (BOOL, char*, const char*) should be added.

Also, if ifelse() is using a const char*, shouldn't it be returning a const char* instead of a char*?

Re: New Zorro version 2.50 [Re: jcl] #486312
07/28/22 08:17
07/28/22 08:17
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
Yes. In that case cast the char* to const char*.

The two overloads cover almost all cases where ifelse is used with Zorro functions or indicators. The second overload returns a char' because it is for arguments of type "string", which convert to const char', but can in fact be passed to functions that accept char*.

We didn't want to inflate zorro.h even more with even more overloads or template variants. In some cases you really need a typecast, not only for ifelse.

Re: New Zorro version 2.50 [Re: jcl] #486336
08/02/22 17:22
08/02/22 17:22
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline
Serious User
AndrewAMD  Offline
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
C++: tradeUpdate() with no arguments does not have an overload. I only see this overload in the Lite-C headers (default.c).

Re: New Zorro version 2.50 [Re: jcl] #486340
08/03/22 12:29
08/03/22 12:29
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
In fact, none of the functions has a real overload in C++. They convert to variants with appended "0" or "1".

We'll rename tradeUpdate() to tradeUpdatePool() in the next update. You can already enter this line in zorro.h:

inline int tradeUpdatePool() { return tradeUpdate(0,0,0,0,0); }

Re: New Zorro version 2.50 [Re: jcl] #486355
08/05/22 10:40
08/05/22 10:40
Joined: Mar 2018
Posts: 62
hast29 Offline
Junior Member
hast29  Offline
Junior Member

Joined: Mar 2018
Posts: 62
Hi, I am having difficulty to install the 2.50.2 Version. The error message is, that the VCRUNTIME140.dll is missing and the advice to reinstall. With the 64-bit version also no success, complains about missing mfc140.dll. I have uninstalled all old versions, and installed from scratch, the same error messages. Is it a bug or some setup problem of my desktop ? I mean the Zorro is installed with no error message, but Zorro.exe does not start.

Thank you for any advice, ...

Last edited by hast29; 08/05/22 10:41.
Re: New Zorro version 2.50 [Re: jcl] #486356
08/05/22 11:03
08/05/22 11:03
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline OP

Chief Engineer
jcl  Offline OP

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
No bug or setup problem, but apparently a PC without a VC runtime.

Please get it here:

https://opserver.de/down/vcruntime140.zip

and unzip it in the Zorro folder or in your windows/system32 folder. Maybe it's not the only DLL missing - please let us know if you then still get a missing DLL error. We'll pack all those DLLs in the setup.

The 64 bit version won't directly run on your PC anyway. You must really install the 64 bit runtime as described in the manual.

Re: New Zorro version 2.50 [Re: jcl] #486357
08/05/22 13:29
08/05/22 13:29
Joined: Mar 2018
Posts: 62
hast29 Offline
Junior Member
hast29  Offline
Junior Member

Joined: Mar 2018
Posts: 62
Hi jcl and thank you for the prompt support. The library did not help. After unzipping it into Zoro folder, the application does not start again and this time with just a message "the application could not be started", no hints about any other missing libraries.
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.
Also, is there any benefit from 64bit architecture ? I am just training and testing own scripts, writen directly in Zorro "simple C".

Page 1 of 3 1 2 3

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