Re: Lesson 1 Compiling Error C2447 missing function header

Examples step by step how to make your own automated strategy or user indicator
Message
Author
txquestor
Posts: 5
Joined: Wed Jan 20, 2016 9:58 am

Re: Lesson 1 Compiling Error C2447 missing function header

#1 Postby txquestor » Wed Mar 16, 2016 6:05 pm

Compiling Error for Forextester2 DemoStrategy DLL

Hi Terranin,

2 issues:

1. without additional 'include' path for .h files the \strategyinterfaceunit.h won't load. It's copied it to the Project Path. But..
2. If I add 'include' path, get this error.

strategyinterfaceunit.h(1738) : error C2447: '{' : missing function header (old-style formal list?)

What do I need to do to fix this error? I don't see anything in the wrong place.

Thanks,
txquestor

This is the code:

Code: Select all

 
 //-----Delete all objects-----------------------------------------------------
void ObjectsDeleteAll(int window, TObjectType ObjType)
{
 if (rec.pObjectsDeleteAll == NULL) return;
 rec.ObjectsDeleteAll(rec.pObjectsDeleteAll, window, ObjType);
}


I use Visual Studio 2008 Express to compile it.

Return to “Programming lessons”

Who is online

Users browsing this forum: No registered users and 2 guests