How can I add flags together (using OR)?
This doesn't work..
.data?
icontype DWORD ?
.
.
.
mov icontype, MB_ICONINFORMATION
invoke MessageBox, NULL, addr msg, addr dialogtitle, MB_SYSTEMMODAL or icontype
The problem occurs because "icontype" is a runtime value where the "or" operator between two styles is an assembly time operator which only works with a constant value.
Try something like this.
mov icontype, MB_SYSTEMMODAL
; more code
or icontype, MB_ICONINFORMATION
; more code
invoke MessageBox, NULL, addr msg, addr dialogtitle, icontype
Great! Thanks! :bg