SQL Aniwhere 9 allows to install a callback function for MESSAGE statement.
I'm trying to install my own message callback function using SQLSetConnectAttr( ... ASA_REGISTER_MESSAGE_CALLBACK ... ). It works normally and I'm catching messages. But I can't acquire previous (default) message function using SQLGetConnectAttr( ... ASA_GET_MESSAGE_CALLBACK ... ) - it returns some odd address, which causing an "access violation..." after installing it and using MESSAGE statement.