Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Grant, valino), 3,361 guests, and 13 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Compiling Trading Strategies with C++ [Re: AndrewAMD] #467905
09/07/17 11:50
09/07/17 11:50
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
enterLong is not overloaded. I don't know how the first parameter type is checked, but probably it is compared to the DLL or lite-C address space. If it is below the address space, it is assumed a lot size.

Re: Compiling Trading Strategies with C++ [Re: jcl] #467909
09/07/17 12:39
09/07/17 12:39
Joined: Feb 2017
Posts: 1,814
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,814
Chicago
Ah, because...
Code:
typedef long function;


This seems to work correctly:
Code:
enterLong((function)tmfCallback);


Thanks!

Re: Compiling Trading Strategies with C++ [Re: AndrewAMD] #467911
09/07/17 14:00
09/07/17 14:00
Joined: Aug 2017
Posts: 58
P
pascalx Offline OP
Junior Member
pascalx  Offline OP
Junior Member
P

Joined: Aug 2017
Posts: 58
Which is a reinterpret_cast. Ideally the cast should be hidden by a template function in zorro.h.

Page 2 of 2 1 2

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1