Page 1 of 1

Re: Lesson 1 Compiling Error C2447 missing function header

Posted: Wed Mar 16, 2016 6:05 pm
by txquestor
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.