c++ dll example does not compile (Zorro 2.48.1

Posted By: AlexTomb

c++ dll example does not compile (Zorro 2.48.1 - 06/17/22 18:50

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,
Posted By: AndrewAMD

Re: c++ dll example does not compile (Zorro 2.48.1 - 06/17/22 20:24

Follow the instructions down to the last detail in the manual page:
https://zorro-project.com/manual/en/dlls.htm
Posted By: Petra

Re: c++ dll example does not compile (Zorro 2.48.1 - 06/18/22 11:28

2.48 has no compile.bat. You need 2.49.
© 2024 lite-C Forums