problem on v3.62 new install and Jose's includes

Started by Shawn Anderson, May 08, 2013, 03:07:57 PM

Previous topic - Next topic

Shawn Anderson

Hello:
I just upgraded from v3.5 to v3.62 of FireFly.
I also downloaded Jose's includes from the link on the install page.
When I try to compile my first project, I get errors like this one:


If I use an older version of Jose's includes, it will not get this error but get the same error on a different include file.

Am I doing something wrong?
thanks

Paul Squires

hmmmm... not sure. Is the parameter "align" maybe defined as a keyword elsewhere in one of the include files. As a test, try changing the "align" to something like "m_align" just to see.

I assume that you installed 3.62 into a new folder rather than over the existing 3.50 installation.
Paul Squires
PlanetSquires Software

José Roca


Shawn Anderson

QuoteI assume that you installed 3.62 into a new folder rather than over the existing 3.50 installation.
Correct.

I don't have any macros, at least not that I created.
I renamed any byval align or byref align references to byval/byref m_align and it compiled just fine.

Thanks

José Roca

Compile the following test...


#COMPILE EXE
#DIM ALL

DECLARE FUNCTION SetTextAlign IMPORT "GDI32.DLL" ALIAS "SetTextAlign" ( _
   BYVAL hdc AS DWORD _                                 ' __in HDC hdc
, BYVAL align AS DWORD _                               ' __in UINT align
) AS DWORD                                             ' UINT

FUNCTION PBMAIN () AS LONG

   ? "ok"

END FUNCTION


...and you will see that you don't get any error.

Therefore, you must have a macro or an structure called align in your code, even if you don't know it.