How to return positive error code from ATL to VB6?
问题 I have checked out the answer at: How can I return both an error string and error code to VB6 from an ATL activex control? I am able to return custom negative error codes, ie with the severity bit set, and a custom error message. But, I would like to be able to generate a code that VB6 will present as a positive # for Err.Number that the user will find easier to use. I'm pretty sure that it can be done since Microsoft's DAO 3.6 DLL is able to. For example, it returns Err.Number= 3078 with Err