enum error
Hi Mr Colin.
i have a problem with enum .see this gives error
//! Button ID for mouse devices
enum MouseButtonID
{
MB_Left = 0, MB_Right, MB_Middle,MB_Button3, MB_Button4,MB_Button5, MB_Button6, MB_Button7
}
error
[43,25]: Expected } or identifier but found 524288 in [MagicPro.zir] Code: MB_Left = 0, MB_Right, MB_Middle,MB_Button3, MB_Button4,MB_Button5, MB_Button6, MB_Button7,
also why ziron did not allow using the keytag of enum as a const in parameter declration.
e.g
cons myType = 0;
function bla(myType typ):int32; stdcall; this is okay
enum myTpye {
a,b,c.....
}
function bla(myType typ):int32; stdcall; this is not okay
http://www.freewebs.com/ogremagic/index.htm