Hi everyone,
I am a newbie trying to program a strategy for Forex Tester. I was following the following tutorial "http://www.forextester.com/forum/viewtopic.php?t=1013" but when I am trying to build the solution, I am getting the following error messages:
warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
error C2572: 'ObjectsDeleteAll'
error C2144: syntax error
error C4430: missing variable type
Thanks for your help.
Cheers
Visual C++ express 2010
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Hello,
To fix this problem please change this code line:
with this code line:
It should help
To fix this problem please change this code line:
Code: Select all
void ObjectsDeleteAll(int window = 0, TObjectType ObjType)
with this code line:
Code: Select all
void ObjectsDeleteAll(int window = 0, TObjectType ObjType = obj_AnyObject)
It should help
Check our other product here:
http://www.forexcopier.com
http://www.forexcopier.com
-
- Posts: 4
- Joined: Thu Oct 27, 2011 8:01 am
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
-
- Posts: 4
- Joined: Thu Oct 27, 2011 8:01 am
Hi,
1) First errors/warnings is in the strategyinterfaceunit.h file
strcpy(dest, source);
strategyinterfaceunit.h(1083): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Same errors on lines 1579 and 1580
2) strategyinterfaceunit.h(1692): error C2572:
'ObjectsDeleteAll' : redefinition of default parameter : parameter 2
'ObjectsDeleteAll' : redefinition of default parameter : parameter 1
Thank you
1) First errors/warnings is in the strategyinterfaceunit.h file
strcpy(dest, source);
strategyinterfaceunit.h(1083): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
Same errors on lines 1579 and 1580
2) strategyinterfaceunit.h(1692): error C2572:
'ObjectsDeleteAll' : redefinition of default parameter : parameter 2
'ObjectsDeleteAll' : redefinition of default parameter : parameter 1
Thank you
-
- Posts: 905
- Joined: Sat Jul 11, 2009 10:54 am
Return to “Programming lessons”
Who is online
Users browsing this forum: No registered users and 24 guests