Programming in Visual C++ 2005

Examples step by step how to make your own automated strategy or user indicator
Message
Author
forextester
Posts: 33
Joined: Thu Feb 19, 2009 8:40 am

Programming in Visual C++ 2005

#1 Postby forextester » Sun Mar 08, 2009 6:22 am

Dear Mike,

I am using Visual C++ 2005. I have successfully built the strategy files included with Forextester. I have also made some of my own strategies.

But i can't seem to build any indicators. not even simple ones. I have taken all the necessary steps and have included all needed header files.
Please help me out.

The Code is attached. you can also find it in the Forextester help file
"Example how to work with objects from indicator".
the log after trying to build is also attached.

Thanks and regards,
Sheraz

PS: if i remove the code body from all the functions (init/calculate etc) and exclude header fles of "technicalfunctions.h" and "Graphics.h", the build would give no errors.
Attachments
error log.rar
the error log after trying to build in Visual C++ 2005.
(1.79 KiB) Downloaded 215 times
Test indicator.rar
The code included in Forextester/help for Visual C++
(1.03 KiB) Downloaded 234 times

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

Re: Programming in Visual C++ 2005

#2 Postby Terranin » Sun Mar 08, 2009 10:47 am

forextester wrote:Dear Mike,

I am using Visual C++ 2005. I have successfully built the strategy files included with Forextester. I have also made some of my own strategies.

But i can't seem to build any indicators. not even simple ones. I have taken all the necessary steps and have included all needed header files.
Please help me out.

The Code is attached. you can also find it in the Forextester help file
"Example how to work with objects from indicator".
the log after trying to build is also attached.

Thanks and regards,
Sheraz

PS: if i remove the code body from all the functions (init/calculate etc) and exclude header fles of "technicalfunctions.h" and "Graphics.h", the build would give no errors.


I am not an expert with C++ and do not have C compiler on my computer at this moment. So can not help you.
Hasta la vista
Mike

forextester
Posts: 33
Joined: Thu Feb 19, 2009 8:40 am

#3 Postby forextester » Sun Mar 08, 2009 4:01 pm

that' fine.

I am switching back to Delphi.

regards.

KelvinHand
Posts: 103
Joined: Sun Jan 02, 2011 6:05 pm

#4 Postby KelvinHand » Sun Apr 10, 2011 11:51 pm

Hi,

Finally understand how to use VC2008 to compile.
Fixed the problem on the Test Indicator.CPP.
Original caused crash to ForexTester


On the Project Properties
- Linker Input -
Module Definition File : Default.Def

Always set to Default.Def with in the following given format together in
the folder of your *.cpp . eg \Test Indicator\Test Indicator.
========================================
LIBRARY

EXPORTS
Init
Done
Calculate
ReplaceStr
IntrfProcsRec
OnParamsChange
========================================
Attachments
Test Indicator.rar
(6.38 KiB) Downloaded 242 times


Return to “Programming lessons”

Who is online

Users browsing this forum: No registered users and 15 guests