Did Lessons from 1 to 2 and got som error

Examples step by step how to make your own automated strategy or user indicator
Message
Author
MoodyMammoth
Posts: 3
Joined: Wed Sep 30, 2009 3:06 am
Contact:

Did Lessons from 1 to 2 and got som error

#1 Postby MoodyMammoth » Wed Sep 30, 2009 3:10 am

Hi,

I did the lessons on VisualStudio 2008 and compiled the dll, got som warnings like this:

Code: Select all

Warnung   1   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.   e:\daten\visual studio 2008\projects\strategydemo\strategydemo\strategyinterfaceunit.h   1009   StrategyDemo
Warnung   2   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.   e:\daten\visual studio 2008\projects\strategydemo\strategydemo\strategyinterfaceunit.h   1505   StrategyDemo
Warnung   3   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.   e:\daten\visual studio 2008\projects\strategydemo\strategydemo\strategyinterfaceunit.h   1506   StrategyDemo
Warnung   4   warning LNK4070: Die /OUT:DemoStrategy.dll-Direktive in .EXP weicht vom Ausgabedateinamen "E:\Daten\Visual Studio 2008\Projects\StrategyDemo\Debug\StrategyDemo.dll" ab; Direktive wird ignoriert.   StrategyDemo.exp   StrategyDemo


If trying to install the DLL in ForexTester2 I got the error that he can't install, but I got no reason why :(

Can anyone help meß

Regards
Manfred

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

Re: Did Lessons from 1 to 2 and got som error

#2 Postby Terranin » Thu Oct 01, 2009 10:07 am

MoodyMammoth wrote:Hi,

I did the lessons on VisualStudio 2008 and compiled the dll, got som warnings like this:

Code: Select all

Warnung   1   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.   e:\daten\visual studio 2008\projects\strategydemo\strategydemo\strategyinterfaceunit.h   1009   StrategyDemo
Warnung   2   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.   e:\daten\visual studio 2008\projects\strategydemo\strategydemo\strategyinterfaceunit.h   1505   StrategyDemo
Warnung   3   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.   e:\daten\visual studio 2008\projects\strategydemo\strategydemo\strategyinterfaceunit.h   1506   StrategyDemo
Warnung   4   warning LNK4070: Die /OUT:DemoStrategy.dll-Direktive in .EXP weicht vom Ausgabedateinamen "E:\Daten\Visual Studio 2008\Projects\StrategyDemo\Debug\StrategyDemo.dll" ab; Direktive wird ignoriert.   StrategyDemo.exp   StrategyDemo


If trying to install the DLL in ForexTester2 I got the error that he can't install, but I got no reason why :(

Can anyone help meß

Regards
Manfred


This is just warnings, you can ignore them. Probably you can not install strategy because you did not attach *.def file to your project. See lesson 1 C++ example.
Hasta la vista
Mike

MoodyMammoth
Posts: 3
Joined: Wed Sep 30, 2009 3:06 am
Contact:

#3 Postby MoodyMammoth » Fri Oct 02, 2009 12:32 am

Hi Mike,

where should I add them?
I added them already to the source-part.

Or should it be in the headers or ressources??

Best Regards
Manfred

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

#4 Postby Terranin » Fri Oct 02, 2009 12:23 pm

MoodyMammoth wrote:Hi Mike,

where should I add them?
I added them already to the source-part.

Or should it be in the headers or ressources??

Best Regards
Manfred


See this image from lesson 1 -
Image
Hasta la vista

Mike

MoodyMammoth
Posts: 3
Joined: Wed Sep 30, 2009 3:06 am
Contact:

#5 Postby MoodyMammoth » Mon Oct 05, 2009 12:36 am

Hi Mike,

I did that already :(

any other idea?

Best regards
Manfred

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

#6 Postby Terranin » Mon Oct 05, 2009 10:02 am

MoodyMammoth wrote:Hi Mike,

I did that already :(

any other idea?

Best regards
Manfred


If you can not install strategy or indicator (Forex Tester do not allow to install) then there is only 1 reason - Forex Tester can not see procedures Init, ResetStrategy, GetSingleTick, ... in this *.dll file. You need somehow decline them as external so Forex Tester can find them.
Hasta la vista

Mike


Return to “Programming lessons”

Who is online

Users browsing this forum: No registered users and 14 guests