Gamestudio Links
Zorro Links
Newest Posts
C++ scripts
by AndrewAMD. 07/02/22 13:02
FXCM doesn't show up in Broker drop-down
by Smallz. 07/02/22 12:32
History & HistoryFolder
by DdlV. 07/01/22 14:57
car.c how to add a trailer or wagon?
by Ice2642. 07/01/22 13:35
IB: brokercommand to cancel **all** orders.
by AndrewAMD. 06/30/22 17:21
Save As dialog box (like file_select)
by jcl. 06/30/22 10:18
AUM Magazine
Latest Screens
DEAD TASTE
Tactics of World War I
Hecknex World
Scheherazade's Journey
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 446 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Anas, PeroPero, AlexTomb, BigW, QJSH
18790 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
c++ dll example does not compile (Zorro 2.48.1 #486193
06/17/22 18:50
06/17/22 18:50
Joined: Jun 2022
Posts: 1
A
AlexTomb Offline OP
Guest
AlexTomb  Offline OP
Guest
A

Joined: Jun 2022
Posts: 1
Hi!
I am trying to build an example from Zorro\Source\VC++
Win10 + VS2019
Of course I know how to create a dll and can do it laugh

It looks like the file compile.bat assumes some conditions. It just does not create a dll.
I tried an another way,
I create a dll as a separated project (ZorroDLL.cpp + MyStrategy.cpp + uncomment #define WORKSHOP4...)
The dll resides in the folder Zorro\Strategy\ZorroTester.dll
I see this dll in the list of strategies.
When I try to run this strategy Zorro says "Zorro 2.48.1
(c) oP group Germany 2022


ZorroTester
Error 062: Can't open ZorroTester.c
"

whe does Zorro try to open the file ZorroTester.c?

Could you share a complete VS project with a working example, please?

Regards,

Re: c++ dll example does not compile (Zorro 2.48.1 [Re: AlexTomb] #486194
06/17/22 20:24
06/17/22 20:24
Joined: Feb 2017
Posts: 1,481
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,481
Chicago
Follow the instructions down to the last detail in the manual page:
https://zorro-project.com/manual/en/dlls.htm

Re: c++ dll example does not compile (Zorro 2.48.1 [Re: AlexTomb] #486197
06/18/22 11:28
06/18/22 11:28
Joined: Apr 2008
Posts: 546
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 546
Austria
2.48 has no compile.bat. You need 2.49.


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