Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

erroneous handling of Error event

Does need the handling of Error event some special edit box or project setting, because my handler function is not called, when a wrong numeric format (like "ddffdd") in introduced to a CNiNumEdit edit box. Instead, if I run it from visual C in debug mode (with F5) in the message window of visual c is displayed the warning message "Warning: automation argument coercion failed. First-chance exception in Range Checking.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception. ". Could you please send me a short example program, which handles correctly the Error event.

matusz
0 Kudos
Message 1 of 2
(3,164 Views)
This is a known issue with Class Wizard in Visual C++ 6.0. For more information, see the Microsoft Knowledge Base article PRB: ActiveX Control's Stock Error Event Uses SCODE Value. To resolve this error in the CNiNumEdit case, change the type of the third parameter of the Error event handler from long to SCODE, and change the VTS_I4 in the ON_EVENT macro for the event to VTS_SCODE.

- Elton
0 Kudos
Message 2 of 2
(3,164 Views)