Hi VANYA, you could try putting your #idndef block in the FF_AppStart code area. You can access FF_Appstart from the "FireFly Workspace", "Explorer", "Special Functions".VANYA wrote:Hi PaulSquires!
It would be nice to FireFly generates something like this:
#ifndef GCLP_HBRBACKGROUND
#define GCLP_HBRBACKGROUND GCL_HBRBACKGROUND
#endif
The goal of FireFly will always to be able to use the latest FB compiler and the latest WinAPI include files. This is especially important in order to ensure compatibility with 32 and 64 bit code. There are several areas of the WinAPI documentation where Microsoft urges the developer to use one api over another. For example, the GCL_HBRBACKGROUND equate is part of the GetClassLong api which should be deprecated in favor of GetClassLongPtr. Here is the link: https://msdn.microsoft.com/en-us/librar ... 85%29.aspx
Hope that helps :-)Note To write code that is compatible with both 32-bit and 64-bit versions of Windows, use GetClassLongPtr. When compiling for 32-bit Windows, GetClassLongPtr is defined as a call to the GetClassLong function.