Error in ScriptInterfaceUnit.h version 1.2a

Bug reports and errors in the program
Message
Author
mspen
Posts: 8
Joined: Wed Sep 10, 2008 3:57 pm
Location: San Diego

Error in ScriptInterfaceUnit.h version 1.2a

#1 Postby mspen » Thu Aug 25, 2011 5:04 pm

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)

FT Support
Posts: 905
Joined: Sat Jul 11, 2009 10:54 am

#2 Postby FT Support » Fri Aug 26, 2011 10:32 am

Thank you!

We'll fix that
Check our other product here:
http://www.forexcopier.com

mspen
Posts: 8
Joined: Wed Sep 10, 2008 3:57 pm
Location: San Diego

#3 Postby mspen » Fri Aug 26, 2011 3:25 pm

Thanks.

It appears that StrategyInterface 1.9 has the same difficulty. I was only building a script yesterday.


Return to “Bug reports”

Who is online

Users browsing this forum: No registered users and 4 guests