Hi,
in Cinema 4D R20 the return value of NewObj() has changed. It now returns a ResultPtr<>. This simply means you need to properly handle the error case.
In our C++ SDK documentation this is covered on the API Transition page and in more detail in the Error Handling manual.
In the microsdk example there's a snippet showing one way to handle the error.
One last request, please consider tagging your posts (as I did now here), so we can keep this forum tidy and easy to search.
Cheers,
Andreas