I'm trying to convert LPCSRT to LPCWSRT using ALT::CA2W. I added include files: #include <atlconv.h>, #include <atldef.h>, #include <atlbase.h> , #include <atlstr.h>. Program is compiling without errors but then I get information:
'An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module.' and program terminates.
Before I added those include files everything was OK.