VB6 event passing bool argument that's always 'true' in C#
My problem is simple, I have an event declared in a VB6 library that passes out a boolean argument: Public Event WriteComplete(ByVal aCommsOk As Boolean, ByVal aBadPIN As Boolean) I have hooked my c# code up to this event many times but bizarrely my testing department and a couple of other ppl have noticed that although VB6 raises this event with aBadPIN set to false, the c# event handler receives it as true. It is not consistent so it's one of 'those' problems but I'm not finding anything on the internet to help much. I have found that if I define a new event that converts the bool to a byte