Dear friends : I am porting a project of mine to use EasyCode and I am experimenting a problem :

In the begin of my code ther is this statement :

Include CliHeader.inc

This file (CliHeader.inc) is a local file within the project's directory.

When I try to compile, I get the error :

RemCli20.asm(1) : fatal error A1000: cannot open file : CliHeader.inc

As I understand, EasyCode expects that all the include files must be in masm32\include directory.

Is there any way to change this behaviour?
I just don't want to have all my includes in masm32\include, if possible.

A sugestion for the ide : an option to show the lines numbers in the editor.

I can compile the code with a batch file and with WinAsm IDE with no problems.

Anyway, congratulations for the wonderfull job. It's very nice and well done. I Program also in C and with Visual Basic, so I could'nt believe that somebody has done this wonderfull ide.

Sergio - ssaguiar
Posted on 2005-02-14 14:18:15 by ssaguiar
Hi Sergio,

I really appreciate your words about Easy Code. Thank you very much.

About the problem you report, I don't know exactly what happens as it should work properly, so I'll have a look and fix the problem. At the moment, try to include the file through the corresponding menu option in the IDE:

Project-->Add Include file (*.inc)...

Then remove the statement (Include CliHeader.inc) from your code and keep the CliHeader.inc file in the project's directory.

Regards,

Ramon


P.S. Your suggestions will be taken into account.
Posted on 2005-02-14 18:53:17 by rsala
Dear friend :

Thank you for your fast answer.

I tryed as you told but was unable to compile the program again.
So I tryed another thing :

I pasted the includes files in the body of the main source code (at the begining, the cliheader.inc and, at the end, the CliRoutines.inc, so, now, the main source code is just one (the includes where just for separate the definitions at the start of the code and several routines, at the end of it, to make maintenance easier.

Now, I am experimenting other problems.

When I compile, I get these errors :

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

Assembling: RemCli20
RemCli20.asm(4) : warning A4011: multiple .MODEL directives found : .MODEL ignored
c:\masm32\INCLUDE\windows.inc(7942) : error A2163: non-benign structure redefinition: incorrect initializers : NMREBARCHILDSIZE

and several (a lot) of others errors related to windows.inc


I tryed commenting the line :

Include c:\masm32\INCLUDE\windows.inc

at the start of my code, and now the errors are :

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

Assembling: RemCli20
RemCli20.asm(4) : warning A4011: multiple .MODEL directives found : .MODEL ignored
c:\masm32\INCLUDE\wsock32.inc(84) : warning A4006: too many arguments in macro call
switch(1): Macro Called From
c:\masm32\INCLUDE\wsock32.inc(84): Include File
c:\masm32\INCLUDE\wsock32.inc(84) : error A2008: syntax error : PROTO
switch(1): Macro Called From
c:\masm32\INCLUDE\wsock32.inc(84): Include File
RemCli20.asm(1623) : error A2005: symbol redefinition : Text
RemCli20.asm(1623) : error A2111: conflicting parameter definition
RemCli20.asm(1626) : error A2148: invalid symbol type in expression : Text
RemCli20.asm(1626) : error A2114: INVOKE argument type mismatch : argument : 3
RemCli20.asm(1656) : error A2005: symbol redefinition : Text
RemCli20.asm(1656) : error A2111: conflicting parameter definition
RemCli20.asm(1659) : error A2148: invalid symbol type in expression : Text
RemCli20.asm(1659) : error A2114: INVOKE argument type mismatch : argument : 3
RemCli20.asm(2073) : error A2005: symbol redefinition : Text
RemCli20.asm(2073) : error A2111: conflicting parameter definition
RemCli20.asm(2089) : error A2006: undefined symbol : TI
RemCli20.asm(2089) : error A2114: INVOKE argument type mismatch : argument : 4
RemCli20.asm(2084) : error A2148: invalid symbol type in expression : Text
RemCli20.asm(2086) : error A2006: undefined symbol : HUser

Errors ocurred.



As I said, I can compile without errors with other ide and with the batch file.


If you want, I can e-mail to you my source code so you can see what is going on.


Thanks again.

Sergio
Posted on 2005-02-15 10:11:12 by ssaguiar ;
Hi Sergio,

First of all, the following directives are always included internally by the Easy Code IDE:

.model flat, stdcall
option casemap:none


So you do not have to write them in your code, even though they only cause a warning message. Also, directives:

.387
.mmx


will be included in your code (or not), according to what you check in project properties (menu option: Project-->Properties..), so once again do not write them in your code. On the other hand, WINDOWS.INC and MACROS.ASM files also are always included internally by the IDE, so they do not have to be included in none of the windows, modules or include files code.

Finally, Text is an Easy Code macro and no other macro, procedure, constant or variable in your code may have this name.

Try to read the Easy Code Help, Classic Projects (Classical IDE Style) topic, in order to take into account some considerations. It is not very large.

I would be very grateful if you could send me a zip file with your project, so that I can see what really happens. Thank you.

Regards,

Ramon

rsala@easycoder.org
Posted on 2005-02-15 12:08:25 by rsala
Hi,

The include file problem reported in this topic is fixed with Easy Code version 1.00.0017 or later.

Thank you,

Ramon
Posted on 2005-02-15 13:47:01 by rsala