Hi guys, Is there any difference between + and or operators. Is the pipe (|) available in masm32. Clark
Posted on 2001-06-18 02:59:00 by Superman_San
'+' is used to add two values. The equivalent of '|' is 'OR'. Sometimes, adding two values is equivalent to an OR. For example (0001b + 0010b) is equivalent to (0001b OR 0010b).
Posted on 2001-06-18 07:25:00 by karim
Superman_San, When you are combining styles in windows API calls, you ORR them and at the other end in the guts of the API thay are pulled apart in a predectable way based on ORRing them so to be safe, combine your styles with the OR operator. A logical conjunction is an AND/OR or in different terminology, a weak OR which is different to and exclusive OR (XOR) in computer terms. Regards, hutch@pbq.com.au
Posted on 2001-06-18 09:21:00 by hutch--