It seems possible in a DLL but yes, the C++ inside unreal is quite different to what I learnt at school.