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)
any suggestions? :(
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
well, no, those , i wanted to bold text here to glow where compiler show errors - thats mean, i havent got them in my code..
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