Help - ECExterns.inc syntax errors!

Started by milneandfletch, August 06, 2010, 09:29:02 AM

Previous topic - Next topic

milneandfletch

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.

Ramon Sala

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?
Greetings from Catalonia

Ramon Sala

Hi Pete,

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

Sorry for the inconveniences,

Ramon
Greetings from Catalonia

Ramon Sala

Hi Pete,

The new version solving this problem has been released.

Thanks,

Ramon
Greetings from Catalonia

vozzie

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


Ramon Sala

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

Greetings from Catalonia

vozzie

Hy Ramon,

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

Greetings

Ramon Sala

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
Greetings from Catalonia