Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (JeyKey II, AndrewAMD, EvanTJ), 12,229 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
printf compilation error when using visual c++ #478989
02/02/20 08:47
02/02/20 08:47
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
Hi,

When using visual c++ for strategy developement, "printf" cause some compilation error.

#include <zorro.h>

In this zorro.h header file, there is a definition as below.
#define printf _printf

This cause visual c++ compile error, so I comment this, then it seems ok.
But to display logs to zorro output window, This line may be needed.
How to solve this problem?

Re: printf compilation error when using visual c++ [Re: 7th_zorro] #478998
02/02/20 16:37
02/02/20 16:37
Joined: Feb 2017
Posts: 1,839
Chicago
AndrewAMD Online
Serious User
AndrewAMD  Online
Serious User

Joined: Feb 2017
Posts: 1,839
Chicago
You need that line to patch printf to Zorro's print system.

If you are getting errors, you need to start over.

Follow the directions down to the last letter. Are you using Visual Studio 2017 as prescribed??
https://zorro-project.com/manual/en/dlls.htm

Re: printf compilation error when using visual c++ [Re: AndrewAMD] #479003
02/03/20 01:54
02/03/20 01:54
Joined: Oct 2018
Posts: 98
7
7th_zorro Offline OP
Junior Member
7th_zorro  Offline OP
Junior Member
7

Joined: Oct 2018
Posts: 98
Thank you for reply.

I missed that there was a implementation of _printf function in the zorroDLL source file.

Last edited by 7th_zorro; 02/03/20 01:54.

Moderated by  Petra 

Gamestudio download | 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