You sir have solved my problem!!

After about 2 hours of changing stuff, moving around functions and adding and removing lines. Finally I have solved the problem by including the two lines:

#pragma managed(push, off) &
#pragma managed(pop)

The first just above all the crypto++ functions and the second just above the conversion functions.

Thank you so much! After a week of fighting hard with this program to make it work, it now does


So what do these lines actually do? :P