failed attempt to call managed dll from unmanaged c++