Is there a way to return More Error Info from the Extender? I know how to create my own Error codes and return an Error but need to include "More Info" . If so, a point in the right direction would be appreciated.
Thanks.
Jim
It's in addons.h:
/*---------------------------------------------------------------------------
LONG FARPASCAL DllStoreErrorInfo(HGLOBAL hBatData, LPSTR lpErrorInfo)
hBatData = lpViperStruct->hBatData
lpErrorInfo = error information string to store
Returns 0 on success, or a positive value on error:
1 Function failed
2 GlobalLock(hBatData) failed
-----------------------------------------------------------------------------*/
typedef LONG (FARPASCAL * DLLSTOREERRORINFO) (HGLOBAL, LPSTR);
Note that the function name contains part of the name of the button on the WIL error message box.
Excellent. That did the job. Thanks.
Jim
There is an inline template method in WTExtender.h, as well.
inline long DllStoreErrorInfo(LPCSTR lpErrorInfo) throw()
{
return m_lpViperStruct->lpfnDllStoreErrorInfo(m_lpViperStruct->hBatData,(LPSTR)lpErrorInfo);
}
Yep. That is what I used. Thanks again.
Jim