I want it to be able to overflow the &h7FFFFFFF boundary so that I can check for a negative number, to see if an overflow has occurred. While I can use On Error Resume Next and then check if an error happened using If Err.Number, the code used by VB6 for executing this error check is quite slow. It would be much faster, if I could just check for a negative number to see if an overflow had occurred. I know that I can disable integer overflow errors in an EXE compiled with VB6, by changing the compilation settings, but that doesn't effect VB6's behavior, and I would like to be able to run my program in VB6 to debug it before compiling it. I need to be able to run it in the IDE, and find some kind of maybe hacky code to trick VB6 into allowing an overflow without error. Is this possible?
↧