The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: lodus on April 16, 2006, 07:50:34 PM

Title: Structure problem
Post by: lodus on April 16, 2006, 07:50:34 PM
Hello!
Iam using Easy Code IDE a lot and it really rox! But now i realised problem. Iam trying to have my own structure, but when i declare it and i try compille project it returns error:
Assembling: Module1
ECExterns.inc(7) : error A2006: undefined symbol : SENDCMDINPARAMS

My code:
.Const

.Data?

.Data
IDREGS Struct
    bFeaturesReg     DB 0
    bSectorCountReg  DB 1
    bSectorNumberReg DB 1
    bCylLowReg       DB 0
    bCylHighReg      DB 0
    bDriveHeadReg    DB 160
    bCommandReg      DB 236
    bReserved        DB 0
IDREGS EndS

SENDCMDINPARAMS Struct
        scip_dwBufferSize       DD      512
        scip_irDriveRegs        IDREGS <>
        scip_bDriveNumber       DB      0
        scip_bReserved          DB      3 DUP(?)
        scip_dwReserved         DD      4 DUP(?)
        scip_bBuffer            DB      ?
SENDCMDINPARAMS EndS

[b]SCIP SENDCMDINPARAMS <>[/b] ; <= here is problem

.Code
...


So question is, how can i declare and use my own structure? Strange is, in QEditor its OK  ::)
Thanks for reply  :8)
Title: Re: Structure problem
Post by: lodus on April 18, 2006, 08:24:18 PM
any suggestions?  :(
Title: Re: Structure problem
Post by: Ramon Sala on April 19, 2006, 11:46:01 PM
Hi Lodus,

The problem is the line with and characters. If you  remove them, then it compiles fine. Your code should be the following:

.Const

.Data?

.Data

IDREGS Struct
    bFeaturesReg     DB 0
    bSectorCountReg  DB 1
    bSectorNumberReg DB 1
    bCylLowReg       DB 0
    bCylHighReg      DB 0
    bDriveHeadReg    DB 160
    bCommandReg      DB 236
    bReserved        DB 0
IDREGS EndS

SENDCMDINPARAMS Struct
        scip_dwBufferSize       DD      512
        scip_irDriveRegs        IDREGS <>
        scip_bDriveNumber       DB      0
        scip_bReserved          DB      3 DUP(?)
        scip_dwReserved         DD      4 DUP(?)
        scip_bBuffer            DB      ?
SENDCMDINPARAMS EndS

SCIP SENDCMDINPARAMS <>

.Code



Note that the and  characters have been removed. Now it compiles with no errors.

Regards,

Ramon
Title: Re: Structure problem
Post by: lodus on April 20, 2006, 12:11:47 PM
well, no, those , i wanted to bold text here to glow where compiler show errors - thats mean, i havent got them in my code..
Title: Re: Structure problem
Post by: lodus on April 20, 2006, 12:26:15 PM
well, it seems like my problem is solved by making new project. All i did was i copied code from Classic W32 exec. file into Visual W32 exec. project and it works.

and i have idea how to make this IDE better, when there are functions would be very good, when IDE will make a line above and below code of this function like it has MS Visual Studio and possibility to hide / show code of function would be really great.

Keep good working