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:
(https://www.planetsquires.com/protect/forum/proxy.php?request=http%3A%2F%2Fwww.nbson.com%2Fshawnstuff%2Fimages%2Fjose1.jpg&hash=1fc6efa3973804f72de80bfdacafe7991c87addc)
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
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.
I bet he has a macro named align somewhere.
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
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.