I have this code inside an MFC application:

```
catch(cv::Exception &ex)
    {
        USES_CONVERSION;
        MessageBox(A2T(ex.what()), _TEXT("Error"), MB_ICONERROR);

    }

```

But I am getting this error:

```
error C3204: '_alloca' cannot be called from within a catch block   

```

How can I fix this error? 

The poriginal solution for converting const char \* to CString was from my search over internet, but I could not find any information how to do it inside a catch block.