The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: milneandfletch on August 06, 2010, 09:29:02 AM

Title: Help - ECExterns.inc syntax errors!
Post by: milneandfletch on August 06, 2010, 09:29:02 AM
Hi Everyone,
HELPPPPPPPPP!!!!!!!!!
I have the following complier error, but i dont use ECExterns.inc anywhere and it doesn't exsist in the libraries!
Any pointers on how to fix this would be greafully received!

Thanks

Pete

============== Project1 - Debug ==============

Compiling resources...
Assembling: Window2
ECExterns.inc(286) : error A2008: syntax error : IF
ECExterns.inc(299) : error A2008: syntax error : IF

Errors ocurred.
Title: Re: Help - ECExterns.inc syntax errors!
Post by: Ramon Sala on August 06, 2010, 10:22:06 AM
Hi Pete,

Thanks fo using Easy Code!

ECExterns.inc is a file internally created by Easy Code when compiling visual projects (after compiling, the file is deleted). Could you attach the project causing this error so that I can fix it? Thanks.

Regards,

Ramon


BTW: Are you using the GoAsm or Masm version?
Title: Re: Help - ECExterns.inc syntax errors!
Post by: Ramon Sala on August 06, 2010, 10:31:06 PM
Hi Pete,

This problem will be fixed in the next Easy Code version, which will probably be released tomorrow.

Sorry for the inconveniences,

Ramon
Title: Re: Help - ECExterns.inc syntax errors!
Post by: Ramon Sala on August 07, 2010, 01:29:25 PM
Hi Pete,

The new version solving this problem has been released.

Thanks,

Ramon
Title: Re: Help - ECExterns.inc syntax errors!
Post by: vozzie on August 30, 2010, 11:04:45 PM
Hy Ramon,

I had a sortlike error in version 1.04.0.0013

QuoteECExterns.inc(26) : error A2008: syntax error : Public

Clicking the error in the "Output Window" causes the display of 2 messages...

QuoteCannot find file 'C:\masm32\include\ECExterns.inc'
Cannot find file 'C:\masm32\macros\C:\masm32\include\ECExterns.inc'

The error was caused by a faulty procedure declaration,...

QuoteCreateProcessAndRedirectOutput Proc Public lpszScript:DWord, Public lpCallback:DWord

Thank you for creating this great tool...

Greetings,

Michael

Title: Re: Help - ECExterns.inc syntax errors!
Post by: Ramon Sala on August 31, 2010, 06:13:11 AM
Hi Michael,

The reserved word Public just declares a procedure as Public, but it cannot be applied to parameters. So, the word Public must beĀ removed from theĀ  lpCallback parameter. Just code it like this:

CreateProcessAndRedirectOutput Proc Public lpszScript:DWord, lpCallback:DWord

Regards,

Ramon

Title: Re: Help - ECExterns.inc syntax errors!
Post by: vozzie on September 02, 2010, 06:40:59 PM
Hy Ramon,

Thank you for your fast response. I just reported it because of the strange error message...

Greetings
Title: Re: Help - ECExterns.inc syntax errors!
Post by: Ramon Sala on September 03, 2010, 09:42:56 AM
Hi vozzie,

The Masm assembler (ml.exe) needs to reference procedures with Protypes (Proto). In order to make things easier, Easy Code takes care of those references and writes all Protoypes in a file named ECExterns.inc which is deleted after compiling. The Prototypes are taken, of course, from the procedure declarations, so if some procedure has syntax errors (like the lpCallback parameter had), the Prototype has erros too.

Ramon