PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Shawn Anderson on May 08, 2013, 03:07:57 PM

Title: problem on v3.62 new install and Jose's includes
Post by: Shawn Anderson on May 08, 2013, 03:07:57 PM
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
Title: Re: problem on v3.62 new install and Jose's includes
Post by: Paul Squires on May 08, 2013, 06:37:33 PM
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.
Title: Re: problem on v3.62 new install and Jose's includes
Post by: José Roca on May 08, 2013, 09:40:19 PM
I bet he has a macro named align somewhere.
Title: Re: problem on v3.62 new install and Jose's includes
Post by: Shawn Anderson on May 09, 2013, 01:12:23 PM
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
Title: Re: problem on v3.62 new install and Jose's includes
Post by: José Roca on May 09, 2013, 05:54:33 PM
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.