It appears that there is an error in the newest ScriptInterfaceUnit.h:
1>------ Build started: Project: Trades, Configuration: Release Win32 ------
1>Compiling...
1>Trades.cpp
1>c:\devs\c++\forextester2\scripts\trades\ScriptInterfaceUnit.h(1805) : error C2572: 'ObjectsDeleteAll' : redefinition of default parameter : parameter 1
1> c:\devs\c++\forextester2\scripts\trades\ScriptInterfaceUnit.h(754) : see declaration of 'ObjectsDeleteAll'
1>Build log was saved at "file://c:\Devs\C++\ForexTester2\scripts\Trades\Release\BuildLog.htm"
1>Trades - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I believe it can be fixed with the following change. I think the default should only be on the prototype:
< void ObjectsDeleteAll(int window = 0, TObjectType ObjType)
---
> void ObjectsDeleteAll(int window, TObjectType ObjType)
Error in ScriptInterfaceUnit.h version 1.2a
-
- Posts: 8
- Joined: Wed Sep 10, 2008 3:57 pm
- Location: San Diego
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Who is online
Users browsing this forum: No registered users and 20 guests